php add minutes to datetime and display it. The PHP date function is used to format a date. here we can learn to main 2 Examples.
php add minutes to datetime
Adding Minutes to $current_time can be done in many ways. The following source code will php added minutes to datetime.
Example 1: PHP Add Minutes to Time
<?php $myJoinDt = "10:10:05"; $latestDt = date('H:i:s', strtotime($myJoinDt. ' +10 minutes')); echo $latestDt; ?>
don’t miss : Subtract Month
Example 2: PHP Add Minutes to Current DateTime
<?php $latestDt = date('H:i:s', strtotime('+10 minutes')); echo $latestDt; ?>
I hope you get an idea about php add minutes to datetime.
I would like to have feedback on my infinityknow.com.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.