mattyboi
04-25-2006, 09:15 PM
I have searched the forum and there is a lot of things about dates, but not quite what I am looking for.
I have a form, with several date fields. Intial date, end date, appt. date, etc. I would like to insert these dates into seperate fields in a table. Thes fields will have the DATE format.
I noticed that MySQL formats dates like so: yyyy/dd/mm
My users will be formating the date like so when they fill out the form. mm/dd/yy.
I want to insert the different dates into the table. Later, I will display the records and ORDER BY the different dates depending on which date you would like to order by.
Will I need to reformat the dates to the MySQL format in order to ORDER BY correctly. If so, how would the insert query look?
Thanks
I have a form, with several date fields. Intial date, end date, appt. date, etc. I would like to insert these dates into seperate fields in a table. Thes fields will have the DATE format.
I noticed that MySQL formats dates like so: yyyy/dd/mm
My users will be formating the date like so when they fill out the form. mm/dd/yy.
I want to insert the different dates into the table. Later, I will display the records and ORDER BY the different dates depending on which date you would like to order by.
Will I need to reformat the dates to the MySQL format in order to ORDER BY correctly. If so, how would the insert query look?
Thanks