Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Javascript isMysqlDate() function for form validation

Posted on 2009-07-13
3
Medium Priority
?
236 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 19

Accepted Solution

by:
erikTsomik earned 2000 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

Hire Technology Freelancers with Gigs

Work with 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

A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
In this article, I’ll talk about multi-threaded slave statistics printed in MySQL error log file.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

604 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