A
Anonymous
Guest
im trying to calcualte a month ahead from a date stored in an sql database and then work out if today is before or after the date calculated, what i have now isnt working cos i dont think im formatting the date right.
any ideas? the date is stored as a datetime
cheers for any help
any ideas? the date is stored as a datetime
Code:
$today = date("m.d.y");
$nextdate = date("m.d.y");
$previousdate = $row['Previousdate'];
$nextdate = date("m", $previousdate)+1;
if ($nextdate > $today){
cheers for any help