Created
November 2, 2012 15:14
-
-
Save pappelt/4001932 to your computer and use it in GitHub Desktop.
PHP DateTime
This file contains 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
$dateformat = 'Y-m-d\TH:i'; | |
$timezone = 'Europe/Berlin'; | |
$_sPickupDateTimeObj = new DateTime('now + 1 day', new DateTimeZone($timezone)); | |
$_sPickupDateTime = $_sPickupDateTimeObj->format($dateformat); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment