How To Add Minutes To Current Date In Php?

03-Apr-2023

.

Admin

Hi Guys,

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

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

Example:


<?php

//Add 5 Minutes in curent date and time

$date = date('d-m-Y H:i', strtotime("+5 min"));

echo ($date);

?>

Output:

21-12-2020 10:48

It will help you...

#PHP