Click here to Skip to main content
12,356,872 members (55,490 online)
Click here to Skip to main content
Alternatives (2)
Add your own
alternative version

Tagged as

Stats

155.8K views
21 bookmarked
Posted

JavaScript Date Validation

, 29 Nov 2012 CPOL
JavaScript Date Validation

Alternatives

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

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

License

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

Share

About the Author

Ed Nutting
Student
United Kingdom United Kingdom
Hi,

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 | :)

Cheers,
Ed Nutting

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