Answers for "subtract time php"

PHP
2

php time

<?php
$t=time();
echo($t . "<br>");
echo(date("Y-m-d",$t));
?>
Posted by: Guest on June-24-2020
0

php subtract seconds from datetime

echo date("Y-m-d H:i:s", strtotime($date) - 600);
//2014-03-16 17:30:27
Posted by: Guest on September-28-2021

Browse Popular Code Answers by Language