I have the following code:
$now = date(\"Y-m-d H:m:s\"); $date = date(\"Y-m-d H:m:s\", strtotime(\'-24 hours\', $now));
However, now it
In same code use strtotime() its working.
$now = date("Y-m-d H:i:s"); $date = date("Y-m-d H:i:s", strtotime('-2 hours', strtotime($now)));