Bug #3852 | support for various datetime formats v4.1 and up | ||
---|---|---|---|
Submitted: | 21 May 2004 20:39 | Modified: | 21 May 2004 22:34 |
Reporter: | Gregory Z | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server | Severity: | S4 (Feature request) |
Version: | OS: | Any (any) | |
Assigned to: | CPU Architecture: | Any |
[21 May 2004 20:39]
Gregory Z
[21 May 2004 20:53]
Paul DuBois
The initial statement in this feature request is not correct. MySQL has never supported date entry in any format other than year-month-date. A date in mm/dd/yy format might have been accepted, but it would have been intrepreted with mm as the year, dd as the month, and yy as the day.
[21 May 2004 21:20]
Gregory Z
I stand corrected. it was not there - just confirmed. Is still it possible to have this concern addressed in future releases?
[21 May 2004 22:34]
Sergei Golubchik
Yes, definitely. It was even implemented already, but because of some problems with the implementation it went into the source tree only partially. But now in 4.1 you can issue STR_TO_DATE(str, format) to convert any string to a date. And GET_FORMAT() function to get format string for USA dates. See the manual for these functions.