I have a variable that receives the date format via the querystring, and then I have another variable that is supposed to extract only the 4 digit year out of that date, like this:
if ($HTTP_GET_VARS["date"]!="")
{
$qstringdate = $HTTP_GET_VARS["date"];
$m=date("n",$qstringdate);
$y=date("Y",$qstringdate);
}
For testing I am trying to write out the values of both variables, to see what it is returning, and the values print like this:
Let's say I click on something that passes the date of 11/1/2002 through the querystring. It prints "$qstringdate" as "11/1/2002" just like its supposed to. But when I print "$y", it shows up as "1969".
Does anyone know what is causing the $y variable to read the 4-digit year out of the 11/1/2002 as 1969, instead of 2002?