944,065 Members | Top Members by Rank

Ad:
Aug 26th, 2006
0

date validation

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Lbruce is offline Offline
3 posts
since Jul 2006
Aug 28th, 2006
0

Re: date validation

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}$/
Reputation Points: 12
Solved Threads: 2
Light Poster
anuradhu is offline Offline
28 posts
since Apr 2006
Jul 17th, 2007
0

Re: date validation

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 .
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sandhyamng is offline Offline
1 posts
since Jul 2007
Jul 17th, 2007
0

Re: date validation

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?
Super Moderator
Featured Poster
Reputation Points: 3241
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,873 posts
since Jun 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: Internet Explorer accessing form elements
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: javascript / ajax tutorials





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC