Today I came across this question in StackOverflow, but did not receive an answer.
My question
echo date('Ym-d',strtotime('2012-september-09')); // output - 2012-09-01 echo date('Ym-d',strtotime('09-september-2012')); // output - 2012-09-09
Codepad
I am confused by why the first format does not give the correct answer. Any help?
source share