In this article, we will learn how to subtract minutes from the current date-time in PHP


Example:

<?php
$date = date('Y-m-d H:i:s', strtotime('-40 minutes'));
echo $date;
?>


Output:

2021-01-26 13:26:34