Why the leading zero in the month parameter making wrong output?
echo date(\"Y-m-d\", mktime(0, 0, 0, 09, 23, 2013));//output 2012-12-23 echo date(\"Y-m-d\",
We can make this parameter as a string and it will work.
Try this:
echo date("Y-m-d", mktime(0, 0, 0, '09', 23, 2013));//output 2012-12-23