Possible Duplicate:
add one year to datetime with php
Paid Date: 2012-10-19 13:13:20
Term: 3
(three years)
I need to turn these two values into a DateTime
that I can then compare to todays date and find out if the subscription is coming up for renewal.
Not sure how to properly accomplish this...
I've tried:
$term = $row['term'];
$paid = $row['paid_date'];
$renew = strtotime("+$term years", $paid);
$today = strtotime('now');
But apparently in this situation, all dates are less than ...