开发者

Parsing date with MySQL

I have a date of the type

August 15, 2009

I'm trying to parse it with

DATE_FORMAT('August 15, 2009', '%M %e, %Y')

开发者_如何转开发

But it is not working returns NULL.

Oh mighty overflowers, do you have any idea what might be the problem?


See http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_date-format

mysql> SELECT STR_TO_DATE('May 1, 2013','%M %d,%Y');
        -> '2013-05-01'
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜