function checkDate(date)
{
//how to use this function since many people recommend this one
isLeap = new Date(date, 1, 29).getMonth() == 1;
return isLeap;
}
In html script, i wrote it as but i can't validate my Date of Order. I need to use javascript and it should be able to validate it including leap year. The function I used above can't work. Any helps will be appreciated.