I have a value of 10.30pm for example and I want to subtract 45 minutes from that? How can this be done?
this may be useful if working with mysql
And if you're looking for a purely PHP-only solution, you could use [man]strtotime/man.
Hi there, try this
$time = '10.30pm'; var_dump(date('h.ia',strtotime($time) - (45*60)));