About
Pricing
Community
Teams
Start Free Trial
Log in
skij
asked on
7/30/2015
PHP: strtotime() - consistent results
How venerable is this to the settings of the server?
echo date('F j, Y',strtotime('2015-2-7'));
Select all
Open in new window
In some locations, 2015-2-7 could be considered February 7, while in other places it could be considered to be July 2. What is the most foolproof way to create a timestamp from a day, month and year?
PHP
3
2
Last Comment
Ray Paseur
8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Ray Paseur
7/30/2015
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Julian Hansen
7/30/2015
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Ray Paseur
8/4/2015
2015-07-20 is the ISO-8601 standard.
UTC
is a timezone
http://iconoun.com/demo/strtotime.php?s=2015-07-20
Regarding 2015/20/07:
http://iconoun.com/demo/strtotime.php?s=2015%2F20%2F07
http://iconoun.com/demo/strtotime.php?s=07%2F20%2F2015
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
http://iconoun.com/demo/strtotime.php?s=2015-07-20
Regarding 2015/20/07:
http://iconoun.com/demo/strtotime.php?s=2015%2F20%2F07
http://iconoun.com/demo/strtotime.php?s=07%2F20%2F2015