I'm trying subtracting Day and Hour from given date time example:
$schedule_date_time = '2016-02-29 08:30 PM';
echo date( "Y-m-d h:i a", strtotime("-1 day 16 hours", strtotime($schedule_date_time)) );
It gives me following result: 2016-02-29 12:30 pm
Which is not correct...
But If I do this :
$schedule_date_time = '2016-02-29 08:30 PM';
echo date( "Y-m-d h:i a", strtotime("-1 day -16 hours", strtotime($schedule_date_time)) );
It gives me following result: 2016-02-28 04:30 am
which is correct but is not possible for me to identify and put minus sign in string just before the integer.