This one is killing me.
I'm trying to write a tiny function that simple outputs the date two days from now. I'm using the following code (in PHP emulator) to try to get it working:
echo date('d/m/Y', mktime(0, 0, 0, date("d")+2, date("m"), date("Y")));
The output I get is 03/07/2014
, clearly the wrong date (I expect to get 03/17/2014
).
What's killing me is that when I try
echo date("Y");
I get the correct output, 2013
.
What is happening inside the date function that is ruining my code?