I am working on a code which will send users reminders like 10 minutes,2 hours, a day, one week before their event is due.
I will like to get the datetime after the reminder has been removed from the startdate
$startdate = "2010-07-10 01:00:00"; // date chosen by the user
$reminder = "10 * 60"; // 10 minutes converted to seconds
//I will like to get the time after each of the following has been reducted.
$reminder = "60*60" // 1 hour
$reminder = "24*60*60" // 1 day
$reminder = "24*7*60*60" 1 week
Thanks in advance.