I am making a program in which my end time is set. say for today end time is set to "2015-08-23 22:15:00".
Now if a customer buy a service of 60 minutes then I want to send him message to reach venue before "2015-08-23 22:15:00"
( -60 min ) means at "2015-08-23 21:15:00"
. So how can I subtract time in above manner.
I got a solution for this link.
It is working fine for
echo date('Y-m-d H:i:s', strtotime('-60 minutes'));
but not for
echo date('2015-08-23 22:15:00', strtotime('-60 minutes'));