TomBarrand
Programmer
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
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