Strtotime with European date format

后端 未结 5 2187
小蘑菇
小蘑菇 2021-01-06 22:02

I\'m trying to use strtotime to convert the following date:

07/09/2009 17:01:27

It\'s the Europe/London timezone format for 7th of September

The func

5条回答
  •  天涯浪人
    2021-01-06 22:42

    try:

    strtotime(07/09/2009 17:01:27 GMT);
    

    or try this first maybe:

    date_default_timezone_set('Europe/London');
    

    i guess the best answer is to not use strtotime as you can never be 100% with its accuracy

提交回复
热议问题