Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

date validation script

Status
Not open for further replies.

damipera

Technical User
Joined
Dec 1, 2005
Messages
134
Location
GB
hi folks! can you pls help me with this as i am stuck. do you know of any script out there that validates and accepts dates with format dd/mm/yy AND also accepts an empty textfield? i've scoured the internet, but no luck so far. thnx in advance for ur help.
 
Maybe you weren't aware of the search facility here.

Click the Search button - just above your post, just after title of the thread. Then type in the search phrase: date validation

You will see the many many many questions (and answers) to this common problem. Hopefully you will find what you are looking for in that list!

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
i've been looking but theres nothing that accepts also an empty textfield. anybody that can point me to right directions? please. thank you.
 
My advice to you would be to find one that you're happy with that validates "dd/mm/yy", and then add in the empty field check afterwards.

If you have one that you like that does the initial validation, post it here, and I'm sure someone should be able to add the empty test.

Hope this helps,
Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
There are plenty of examples here that validate date information. If you are unwilling to take some of these examples apart and discover how they work (so that adding a simple check for an empty field is possible) - then I suggest you look for a pre-packaged script at one of the sites that specialise in offering them.

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top