Last active
December 16, 2015 13:39
-
-
Save nurtext/5443710 to your computer and use it in GitHub Desktop.
Get tomorrow's date
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Optional | |
date_default_timezone_set('Europe/Berlin'); | |
// Set the date to tomorrow (midnight) | |
$tomorrow = new DateTime('tomorrow'); | |
// Print the result | |
print_r($tomorrow); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment