I am stumped why the following PHP strtotime function returns "07" as the month number, not "06" when $ monthToGet = "June":
$monthToGet = $_GET['mon']; $monthAsNumber = date('m', strtotime($monthToGet));
From the search, it looks like this could be due to the default date parameters (in this case day and year), since I did not specify them. Will this be the reason?
Any suggestions appreciated!
php
Wookie
source share