As shown below:
Copy code code as follows:
Function value (Starttime, Endtime) {
var anrr1 = starttime.split ("-");
var aRR2 = endTime.split ("-");
var date1 = new date (PARSEINT (ARR1 [0]), PARSEINT (ARR1 [1]) -1, PARSEINT (ARR1 [2]), 0,0,0);; 0,0,0);
var date2 = new date (PARSEINT (ARR2 [0]), PARSEINT (ARR2 [1]) -1, PARSEINT (ARR2 [2]), 0,0,0);
if (date1.gettime ()> date2.gettime ()) {) {
alert ('The end date cannot be less than the start date', this);
Return false;
} Else {
Return true;
}
Return false;
}