How To Subtract Minutes To Current Date Time In Php?

03-Apr-2023

.

Admin

Hi Guys,

In this example,I will learn you subtract minutes to current date time in php.you can easy and simply subtract minutes to current date time in php.

we will show subtract minutes in current date time php.this tutorial will give you example of subtract minutes to current date time using php.

Example


<?php

$date = date('Y-m-d H:i:s', strtotime('-15 minutes'));

echo $date;

?>

Output:

2020-12-28 10:12:12

It will help you...

#PHP