开发者

How do I convert 'Apr9,20037:33am' to a unix timestamp?

开发者 https://www.devze.com 2022-12-20 20:56 出处:网络
I have a开发者_StackOverflow社区 date in this format: Apr9,20037:33am How do I turn into a timestamp?

I have a开发者_StackOverflow社区 date in this format: Apr9,20037:33am

How do I turn into a timestamp?


strtotime() - Parse about any English textual datetime description into a Unix timestamp

$unix_timestamp = strtotime('Apr 9, 2002 11:33 am')

EDIT: Asker changed question, above no longer applies.


If you have a format that can't be parsed also take a look at: date_parse_from_format

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号