Hi
I think this should be relatively simple, but I can't work it out.
I have a form which users complete and it has a date field. Currently, I default the value to today's date in the format dd/mm/yy
The user can change this date if they wish and I am looking at adding a Javascript calendar drop-down of some fashion to allows users to pick a date.
My question is this: How do I get that date into my mySQL DB upon a POST?
mySQL only likes the date in the format yyyy-mm-dd so how do I pass this format to the database?
I think this should be relatively simple, but I can't work it out.
I have a form which users complete and it has a date field. Currently, I default the value to today's date in the format dd/mm/yy
Code:
value="<? print(Date("d/m/y")); ?>"
My question is this: How do I get that date into my mySQL DB upon a POST?
mySQL only likes the date in the format yyyy-mm-dd so how do I pass this format to the database?