且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将日期转换为UNIX时间戳

更新时间:2023-01-22 12:19:39

这个 strtotime('Jun 26,12'); p>

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?

How about this strtotime('Jun 26,12');