function IsValidDateTime(Day, Mn, Yr) { var DateVal = Day + "/" + Mn + "/" + Yr; var dt = new Date(DateVal); if (dt.getDate() != Day) { alert('Invalid Date'); return (false); } else if (dt.getMonth() != Mn) { //this is for the purpose JavaScript starts the month from 0 alert('Invalid Date'); return (false); } else if (dt.getFullYear() != Yr) { alert('Invalid Date'); return (false); } return (true); }
DatePicker
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)