Link to home
Start Free TrialLog in
Avatar of skij
skijFlag 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?
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial