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
This may be helpful for you:
//calculate like this $date = date("Y-m-d H:m:s", (time()-(60*60*24))); //check the date echo $date;