Why are these changes to date not taking effect?
<p>I have this code that should be changing the day of the output, but I'm not getting any change.  Can anyone see what is wrong?</p>

<pre><code>&lt;?php 
$tempStartDate = "2011-07-04 15:00:00";
$TempDaysFromEvent = "-14";

$newtempStartDate = explode(" ", $tempStartDate);
echo "New Temp Start Date: ".$newtempStartDate[0];
echo "&lt;br&gt;";
list($year, $month, $day) = explode("-", $newtempStartDate[0]);
echo $year." ". $month. " ". $day;
echo "&lt;br&gt;";

$tempStartDate  =  $tempEndDate  =  date("Y-m-d", mktime(0,0,0,$month,($day+$tempDaysFromEvent),$year));
echo "TempStart Date:".$tempStartDate."&lt;br&gt;";

?&gt;
</code></pre>

<p>This is giving me this output:</p>

<pre><code>New Temp Start Date: 2011-07-04
2011 07 04
TempStart Date:2011-07-04
</code></pre>

<p>But I would expect it to give me:</p>

<pre><code>New Temp Start Date: 2011-07-04
2011 07 04
TempStart Date:2011-06-20
</code></pre>
