PDA

View Full Version : validating a date


jasongr
01-09-2006, 05:09 AM
Hello

Is there a safe way to validate that a given date (day, month and year) constitute a legal and valid date?

For example, the 29th of February is usually illegal
but Feb 29 1984 was a valid date

Is there a construct in JavaScript that is aware of all the different dates?

thanks