Answers for "php subtract minutes from datetime"

PHP
1

php remove 1 day from date

print('Next Date ' . date('Y-m-d', strtotime('-1 day', strtotime($date_raw))));
Posted by: Guest on July-18-2020
0

php datetime sub minutes

$datetime = new DateTime();

//PT 'TIME' M
//PT30S -> 30 Seconds
//PT30M -> 30 Minutes
//PT30H -> 30 Hours
$datetime->sub(new DateInterval('PT12H30M'));
Posted by: Guest on May-26-2021
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

Code answers related to "php subtract minutes from datetime"

Browse Popular Code Answers by Language