2016-11-28 89 views

回答

0

您应该首先使用unix_timestamp函数将日期转换为时间戳。然后,您可以使用格式化的功能from_unixtime此时间戳:

select from_unixtime(unix_timestamp('2016-11-28', 'yyyy-MM-dd'), 'dd-MMM-yy') 
+0

感谢您的快速回复@cheseaux – prakash

1

嗯,我居然发现一个简单的解决方案:

select date_format(current_date(),'dd-MMM-yy') 

此实现需要的是什么。

相关问题