functioncheckEndTime(startTime,endTime){
varstart=newDate(startTime.replace("-","/").replace("-","/"));
varend=newDate(endTime.replace("-","/").replace("-","/"));
if(end<start){
returnfalse;
}
returntrue;
};

调用:

checkEndTime('2013-10-2910:11:00','2013-10-3010:11:00');//returntrueorfalse