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
精彩评论