var dateEnd = new Date(Date.parse(dateTimeValue));
if (Object.prototype.toString.call(dateEnd) !== "[object Date]") { alert("Wrong date format"); }
dateEnd.getTime()
NaN
if (isNaN(dateEnd.getTime())) { alert("Wrong date format"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)