这是样品请求日期Wed Feb 02 2022 00:00:00 GMT+0800 (Singapore Standard Time)
我想转换成这种格式2022-02-19
。
$begin_date = 'Wed Feb 02 2022 00:00:00 GMT+0800';
$timestamp = strtotime($begin_date);
$my_date = date('Y-m-d', $timestamp);
echo $my_date;