please help with date comparison
Posted: Fri Oct 08, 2010 3:53 pm
Im trying to do a date comparison and I am not having any success...the statement returns false
can someone tell me what im doing wrong?
Code: Select all
$time = time();
$MyMonth = "October";
$DMonth = date(F);
if ($MyMonth = $Dmonth){ //if ($MyMonth == $Dmonth) does not work either
echo "yes it matches up";
echo date("F" ,$time);
}
else
echo "no luck bro!";
echo date("F" ,$time);