Convert Date to UNIX timestamp
24,057
Solution 1
How about this strtotime('Jun 26,12');
Solution 2
I used DateTime::createFromFormat
works well for me.. more info here.
Author by
user1425322
Updated on July 09, 2022Comments
-
user1425322 almost 2 years
I'm having a date format of
Jun 26, '12
.
strtotime()
converts proper date string, and this string results in a blank output. This can be solved but I can only think of ugly ways of doing it.Any ideas for converting this date format to UNIX timestamp elegantly?