php把 ‘年月日时分秒’的格式转换为‘年月日‘
先转换为时间戳-》再转换为‘年月日’
date("Y-m-d",strtotime('2010-03-24 08:15:42'))
mysql把‘年月日时分秒’的格式转换为‘年月日‘
date(字段名)
date(time) as addtime
php把 ‘年月日时分秒’的格式转换为‘年月日‘
先转换为时间戳-》再转换为‘年月日’
date("Y-m-d",strtotime('2010-03-24 08:15:42'))
mysql把‘年月日时分秒’的格式转换为‘年月日‘
date(字段名)
date(time) as addtime