Avatar of skij
skij
Flag for Canada asked on

PHP: strtotime() - consistent results

How venerable is this to the settings of the server?
echo date('F j, Y',strtotime('2015-2-7'));

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

Avatar of undefined
Last Comment
Ray Paseur

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Ray Paseur

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

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

All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck