将日期从yyyy-mm-dd转换为dd month_name年 [英] Convert date from yyyy-mm-dd to dd month_name year
本文介绍了将日期从yyyy-mm-dd转换为dd month_name年的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
ddMMMMyyyy
如何做到这一点
解决方案
选择date_format(date_column,'%d%M%Y')
from your_table
I have stored date in MySQL in the format yyyy-mm-dd and I wish to display it on the form like
ddMMMMyyyy
How can I do that
解决方案
Use DATE_FORMAT()
select date_format(date_column, '%d %M %Y')
from your_table
这篇关于将日期从yyyy-mm-dd转换为dd month_name年的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文