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