MySQL DATE_FORMAT'%M'短个月了吗? [英] MySQL DATE_FORMAT '%M' for short month?

查看:118
本文介绍了MySQL DATE_FORMAT'%M'短个月了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试显示类似27-Jul-13的日期.我一直读到M应该给出速记月份,而F应该给出全名.我正在使用这个:

I'm trying to display dates like this 27-Jul-13. I keep reading that M should give the shorthand month and F the full name. I am using this:

DATE_FORMAT(date, '%d-%M-%y') AS Displaydate

,但显示如下:14-April-12而不是14-Apr-12

but it displays like this: 14-April-12 not 14-Apr-12

此外,如果我使用F则根本不起作用,它只显示应该在月份中显示的F.我在做什么错了?

Also if I use F it doesn't work at all, it just displays an F where the month should be. What am I doing wrong?

推荐答案

根据 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆