开发者

How do I convert 'Apr9,20037:33am' to a unix 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜