Click here to Skip to main content
12,395,378 members (80,406 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 1:19pm

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160721.1 | Last Updated 10 Jan 2011
Article Copyright 2011 by Prerak Patel
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid