Hi All, am getting the date with no troubles by: $date=date ("Y-m-d");
and i want to place the Expiry date (wich is this date plus 2 month)
how can i place a $exdate variable wich is 2 month more than date .. ?
thanks in advance ...
list($yyyy, $mm, $dd) = explode("-", $date); $mm = $mm + 2; if ($mm > 12) { $mm -= 12; $yyyy++; } $expirey = "$yyyy-$mm-$dd";
I'll leave checking if the expirey date is 2005-2-30 is valid or not to you 😉