Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@pappelt
Created November 2, 2012 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pappelt/4001932 to your computer and use it in GitHub Desktop.
Save pappelt/4001932 to your computer and use it in GitHub Desktop.
PHP DateTime
$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