How to Create a colummn DATE with format DD/MM/YYYY? Mysql come for defaut with this formar YYY/MM/DD.
I need isert via HTML5 date Day/Month/Year, for this format come in DD/MM/YYYY
How to Create a colummn DATE with format DD/MM/YYYY? Mysql come for defaut with this formar YYY/MM/DD.
I need isert via HTML5 date Day/Month/Year, for this format come in DD/MM/YYYY
On your insert/select statements, you can convert MySQL Date Functions:
SELECT ... DATE_FORMAT(field,'%d/%m/%Y');
INSERT ... STR_TO_DATE('formatteddate','%d/%m/%Y')
you can check your js file if any,corresponding to date and change format to MySQL database format
I guess you could save it as a varchar, but that's messy. Your best option is to have MySQL save the date in the default format, then simply format the date to DD/MM/YYYY upon retrieval.