Strtotime() doesn't work with dd/mm/YYYY format

前端 未结 15 1293
Happy的楠姐
Happy的楠姐 2020-11-22 09:33

I really like the strtotime() function, but the user manual doesn\'t give a complete description of the supported date formats. strtotime(\'dd/mm/YYYY\')<

15条回答
  •  深忆病人
    2020-11-22 09:54

    $date_info = '20/02/2019'; echo date('Y-m-d', strtotime(str_replace('/', '-', $date_info) ));

提交回复
热议问题