获取年月日

select date_format(postdate,'%Y-%m-%d') from  news 

原文地址:https://www.cnblogs.com/sunzhenyong/p/4234095.html