How To Subtract Minutes To Current Date Time In Php?
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...
- How To Use Php Conditional Statement Example
- How to Check if String Contains Regex in PHP?
- PHP Array_column() Function Example
- PHP Generate List of Random Numbers Between 0 and 100 Example
- How to User Login with Facebook in PHP?
- How to Explode Every Character into Array Using PHP Example?
- PHP Form Validation Tutorial
- PHP Convert XML to JSON Example