I've two input fields in wich the user enter dates.
I've put something like "enter date here (dd/mm/yyyy) but most of the user
don't enter date in correct format. So I'd like to be able to get any format
coming from user as I must put those dates in a MySQL database:
some format: (non-US format, so day/month/year)
1/9/2004
1/09/2004
01/9/2004
01/09/2004
1/9/04
1/09/04
01/9/04
01/09/04
same with any other separator like '-', space...
1-9-2004
1-09-04
1 10 2004
....
the max input field lenght is 10 characters.
I must put the entered value in a Mysql date field, so it must be well
formatted.
Does it exists any function ?
Bob
I've put something like "enter date here (dd/mm/yyyy) but most of the user
don't enter date in correct format. So I'd like to be able to get any format
coming from user as I must put those dates in a MySQL database:
some format: (non-US format, so day/month/year)
1/9/2004
1/09/2004
01/9/2004
01/09/2004
1/9/04
1/09/04
01/9/04
01/09/04
same with any other separator like '-', space...
1-9-2004
1-09-04
1 10 2004
....
the max input field lenght is 10 characters.
I must put the entered value in a Mysql date field, so it must be well
formatted.
Does it exists any function ?
Bob
Comment