Convert to date format dd/mm/yyyy

前端 未结 6 929
感动是毒
感动是毒 2020-12-01 06:29

I have the following date: 2010-04-19 18:31:27. I would like to convert this date to the dd/mm/yyyy format.

6条回答
  •  既然无缘
    2020-12-01 07:03

    Try this:

    $old_date = Date_create("2010-04-19 18:31:27");
    $new_date = Date_format($old_date, "d/m/Y");
    

提交回复
热议问题