- Code: Select all
$futureDate = date("mdHi", strtotime(date("Y-m-d H:i:s") + '+ 10 minute'));
But it is not returning the right date and time, it seems to be adding days as well and randomly.
I have set the server datetime to London Uk in my script and this does not correct things.
What is the correct way to get only the numbers of the date string that I am after.