date validation

W

weiwei

hi,
is there anyway that I can validate my date format in javascript?? the
format should be mmddyy, no space, no dash, and has to include 0 if
month is from 1-9, for example 01, 02, like that????
please help me out
thanks in advance
Wei
 
L

Lasse Reichstein Nielsen

is there anyway that I can validate my date format in javascript?? the
format should be mmddyy, no space, no dash, and has to include 0 if
month is from 1-9, for example 01, 02, like that????

Your date format looks correct. Or did you mean to validate dates
against the date format?

Following a link from this group's FAQ:
<URL:http://jibbering.com/faq/>
I found this page:
<URL:http://www.merlyn.demon.co.uk/js-date4.htm#TDVal>

I would recommend using a four digit year, if nothing else.

If this is for use on the internet, where you can't assume the
nationality of the user, you should pick an international date
format, e.g., yyyy-mm-dd.

/L
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top