If my current date print “10:20:30”, I want to increase minutes manually. I want to add 30 minutes and want to get value like “10:50:30”. How can I add some minutes into current date time using PHP?
I am trying with this code:
<?php $curentTime=date("Y-m-d H:i:s"); //Output : "2019-07-10 10:20:30" // I want add 30 minutes and get : "2019-07-10 10:50:30" ?>
Question and answer is powered by AnsPress.io