Alright, so I'm working on a licensing system, and I'm very new to working with PHP. I'd like to retrieve the number of days a license key has, then add that to the current day. My code,
$expire = $tags['exp_time']; //EXPIRATION_DATE_DAYS
$expDate = date('Y-m-d H:i:s');
$expDate = strtotime($expDate);
$expDate = $expDate + ((24 * 60 * 60)*($expire));
$expDate = date('Y-m-d H:i:s', $expDate);
I can retrieve the number of days just fine by the way, it's just creating the timestamp in a DATE-TIME format.
Any help/suggestions will greatly be appreciated. I've also tried,
- date_modify(...)