954,132 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

date validation

Hello,

does anyone know how i can validate a date field using javascript. The field is a text field that accepts a date in the format yyyy-mm-dd.

i appreciate your help.
Thanks.

Lbruce
Newbie Poster
3 posts since Jul 2006
Reputation Points: 10
Solved Threads: 0
 

find here the regular expression...
if you are still not able to figure it out..let me know.....

/^[0-9]{4}\-[0-9]{2}\-[0-9]{2}$/

anuradhu
Light Poster
29 posts since Apr 2006
Reputation Points: 12
Solved Threads: 2
 

hello can any one tell me how to validate date and time. i am selecting date and time from calendar window .then how should i validate it .

sandhyamng
Newbie Poster
1 post since Jul 2007
Reputation Points: 10
Solved Threads: 0
 

If you are selecting it from a Calendar widget, won't it be automatically validated? Of course you can't pick out '123/123/123' from it, can you?

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 733
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You