Click here to Skip to main content
12,511,920 members (43,546 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


1 bookmarked

JavaScript Date Validation

, 28 Sep 2011 CPOL
Datejs could be a possible alternate helper, or if you are going the way of jQuery, check out jQuery validation engine.


Members may post updates or alternatives to this current article in order to show different approaches or add new features.

17 Jan 2011
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...
29 Nov 2012
Ed Nutting
2 alternatives  
JavaScript Date Validation


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


About the Author

Web Developer
United States United States
Father(Father first)
Professional Software Developer (Since 2008 or so)
All around IT Guy(Since 2003 or so)
Amateur artist, musician, writer, philosopher (and whatever else I fancy)
Gamer(Not nearly as much of one as I used to be)
Nerd (All around Nerd and damn proud)
Technology Enthusiast(I like gadgets)
Slight Movie Buff (I like to think I know some of the more obscure titles.)

My Blog

My new Blog

My (WIP) Game

| | Privacy | Terms of Use | Mobile
Web02 | 2.8.160929.1 | Last Updated 28 Sep 2011
Article Copyright 2011 by musicm122
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid