I am trying to figure out how to subtract a set amount of time from a variable before it is entered into the database. For instance user selects from a time picker 1:00 pm and then the set variable of 1 hour before is calculated leaving the value of StartTime to be entered in the database as 12 am.
starttime is the variable from the time picker
preptime is the variable that states X amount of minutes prior to starttime to enter into database for the actual start time.
$res->end_date = $end_date;
$res->start = $_POST['starttime'];
$res->end = $_POST['endtime'];