Click here to Skip to main content
11,431,373 members (65,153 online)
Click here to Skip to main content

JavaScript Date Validation

, 10 Jan 2011 CPOL
How about this? Just split it and send to this function:function isValidDate(day,month,year){var dt;dt=new Date(year,month-1,day); // as months are 0-11return ((day==dt.getDate()) && (month==dt.getMonth()) && (year==dt.getFullYear()));}I used it from somewhere.
This article is not currently available for viewing.

Please go to the Date and Time Table of Contents to view the list of available articles in this section.
Closed because this item's quality is too poor to be published. Reported by Sean Ewington, Prosan on Wednesday, June 20, 2012 2:19pm.
| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150428.2 | Last Updated 10 Jan 2011
Article Copyright 2011 by Prerak Patel
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid