Click here to Skip to main content
15,901,122 members
Articles / Programming Languages / Javascript

JavaScript Date Validation

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
17 Jan 2011CPOL 15.4K  
Your statement of, "I wanted to validate text inputed by a user as they were typing to tell them if it was a valid date." seems to be a bit misleading. I was under the impression that your code would start off returning true until I entered a non-number character, invalid separator, or invalid...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions