Click here to Skip to main content
11,927,422 members (58,860 online)
Click here to Skip to main content
Alternatives (2)
Add your own
alternative version

Tagged as


21 bookmarked

JavaScript Date Validation

, 29 Nov 2012 CPOL
JavaScript Date Validation


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...
28 Sep 2011
Datejs could be a possible alternate helper, or if you are going the way of jQuery, check out jQuery validation engine.


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


About the Author

Ed Nutting
United Kingdom United Kingdom

I am Edward Nutting, born March 1996 and I am currently a Computer Science and Electronic Engineering undergraduate at the University of Bristol, UK. I've been self-teaching programming since I was eight years old and have dabbled in many different areas from web development (where I had my own advertising startup) to low level operating system stuff (my current project Fling OS).

The articles and code on this profile are some of my early work (from when I was aged about 13 to 16) but despite my young age, it has been well received by CodeProject users. My more recent work has been for companies or on projects hosted on GitHub, CodePlex or BitBucket.

I keep an eye on many things techy and am open to any and all ideas, so please feel free to contact me if you think I can help! Smile | :)

Ed Nutting

| | Privacy | Terms of Use | Mobile
Web03 | 2.8.151126.1 | Last Updated 29 Nov 2012
Article Copyright 2011 by Ed Nutting
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid