Solved

Javascript isMysqlDate() function for form validation

Posted on 2009-07-13
3
230 Views
Last Modified: 2012-05-07
Hi

I'm building a form that contains a text field for a date. This date needs to be entered in mysql format "yyyy-mm-dd". I'm looking for a function that will validate the text box date and return true if the date is valid and false if it isn't. Surprisingly after about 15 minutes of googling I can't seem to find anything that quite fits the bill.

Please could someone tell me how to write this function.

thanks very much
0
Comment
Question by:xoundboy
  • 2
3 Comments
 
LVL 19

Accepted Solution

by:
erikTsomik earned 500 total points
Comment Utility
check this out . I think it will give you what you need
http://www.webdeveloper.com/forum/showthread.php?t=190078
0
 
LVL 2

Author Comment

by:xoundboy
Comment Utility
Sorry for the delay - my wife just had a baby so I'm off work for a few days
0
 
LVL 2

Author Comment

by:xoundboy
Comment Utility
thanks - I got it working now.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now