mysql显示的是北京时间,现在只取时间或只取日期

一、如图,显示的是北京时间,现在只取时间或只取日期,  用date_format这个函数  1、只取时间 ,DATE_FORMAT(date,format),date 参数是合法的日期,format 规定日期/时间的输出格式。 可以使用的格式有: 格式 描述 %a 缩写星期名 %b 缩写月名 %c 月,数值 %D 带有英文前缀的月中的天 %d 月的天,数值(00-31) %e 月的天,数值(0-3
相关文章
相关标签/搜索