dahngeek
2/20/2017 - 5:47 PM

Get tomorrows at certain hour date using time() and date() on PHP

Get tomorrows at certain hour date using time() and date() on PHP

<?php

//Forma 1
$hoy_string = date("Y-m-d", time()+(1*24*60*60)); //Mas un dia
$fecha = strtotime($hoy_string.' 08:30:00');
echo date("Y-m-d H:i:s", $fecha);



//Forma 2
date_default_timezone_set("UTC");
$nextDay = strtotime("+1 day 08:00am");