Okay the accepted answer is now over three years old and since we got PHP5 and even now PHP7 we can do it much easier with the DateTime
class. The DateTime
class is a native PHP class. No further library is in need.
$oDateNow = new DateTime(); // Date now
$oDateTomorrow = new DateTime('tomorrow midnight'); // Date tomorrow midnight
$bResult = $oDateNow < $oDateTomorrow ? true : false;
The DateTime
class accepts all parameters the strtotime()
function also accepts.