sql - Date Styles in MySQL -
i'm trying input specific date type mysql database.
the format dd-'month'-yy month abbreviated month. example, put in, 12-dec-78 december 12, 1978.
i've tried inputting style date data type, reformats 0's- 0000-00-00.
i've looked on mysql page , have had no luck finding data type supports format @ table creation. there type i'm overlooking or setting switch on method?
you need convert date mysql friendly format. str_to_date() you:
str_to_date('12-dec-78', "%d-%b-%y")
Comments
Post a Comment