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

Date Format

Status
Not open for further replies.

TomBarrand

Programmer
Aug 9, 2000
162
GB
Hi,

I have an input field that a date can be entered into. When the form is submitted I need to validate that the date is in the following format, dd/mm/yyyy, e.g. 01/08/1980. If the user has entered something like 1/8/1980 I need the javascript to format using the above format and change the value to 01/08/1980.

Has anyone done this or got any ideas?

Thanks
 
Use the search feature of this forum and search on "date validate". This question has been asked about once a week for the past however-long.

You may have to week through the threads that say the same thing as this, but your answers are out there.

Now, if you have some code and something's not quite right about it and you can't figure it out, go ahead and post that, but for this generalized question, most people will point you at the search function.

Dave


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
O Time, Strength, Cash, and Patience! [infinity]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top