Convert the time format in php

前端 未结 2 1116
小鲜肉
小鲜肉 2020-12-12 04:01

How would I convert a date formatted like this Thu, 08 Jul 2010 15:51:01 into a date like this Thursday July 8th, 2010 3:51 pm. Also, how would I f

2条回答
  •  伪装坚强ぢ
    2020-12-12 04:53

    http://pl2.php.net/manual/en/function.date.php

    echo date("l F jS, Y", strtotime("Thu, 08 Jul 2010 15:51:01"));
    

提交回复
热议问题