Click here to Skip to main content
Click here to Skip to main content

JavaScript Date Validation

, 10 Jan 2011
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 1:19pm.
| Advertise | Privacy | Mobile
Web04 | 2.8.140814.1 | Last Updated 10 Jan 2011
Article Copyright 2011 by Prerak Patel
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid