Solved

Javascript isMysqlDate() function for form validation

Posted on 2009-07-13
3
231 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
ID: 24840154
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
ID: 24898669
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
ID: 24998249
thanks - I got it working now.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
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…

776 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