skij
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'));
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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