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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display today's date in input box

Status
Not open for further replies.

hayley

Programmer
Mar 14, 2001
13
GB
Hi,

I'm fairly new to JavaScript and wondering if anyone can help with a query I have. I have an html input box where the user enter's the date in the format dd/mm/yyyy. I would like the box to default to the current day's date (i.e. before the users enters their own, or if they enter nothing at all.) Does anyone know how to do this? Also, I would like to include a short bit of code to check the date is valid.

Thanks v. much for your help!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top