[Solved] PHP DateTime, paid date + a year term [duplicate]


If you have the paid date as a string:

if(strtotime("2012-10-19 13:13:20 +3 years") > time()) {
     // expired
}

If you have paid date as a timestamp:

if(strtotime("+3 years", $paidDate) > time()) {
     // expired
}

3

solved PHP DateTime, paid date + a year term [duplicate]