/ ** * Judging the relationship between the two dates represented by the string from and TO. * @Param from FROM to meet the YYYY-MM-DD HH: MM date format string * @Param to meet YYYY-MM-DD HH: MM date format string * @return -1: from> to * @return 0: From = to * @return 1: from to.Charat (i)) {rvalue = -1; break;}} return rvalue;}
Function checkdate (from, to) {if (from == "|| to ==" ") Return 2; var rvalue = 0; for (var i = 0; i <10; i ) {if (from.Charat (i) to.Charat (i)) {rvalue = -1; break;}} return rvalue;}
Ayuan
9CBS certified blog expert
Blog expert
Huawei old employees
Big Data
More than ten years, in Huawei, Internet Corporation's experience, profound understanding and practical experience in CRM, big data, mainly sharing various project experience, including architecture, Java, big data and other articles