DATE_FORMAT函数
yyyy-MM-dd
DATE_FORMAT(contract_time,'%Y-%m-%d')
select contract_time, DATE_FORMAT(contract_flag_time,'%Y-%m-%d') as contract_end_date
from a where id_card_no != ""
yyyy-MM-dd HH:mm:ss
DATE_FORMAT(NOW(),'%Y-%m-%d %H:%i:%s');