As shown below:
if ( New date (strsd.replace (/-/g, '/')) & gt; new date (stred.replace (/-/g, '/')) {// The start time is greater than the end time
alert ("Time selection is wrong! The start date must be less than or equal to the end period!");
Return false;
}
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn