Created
January 21, 2015 09:19
-
-
Save hamaguchi/aa161f0682eced3560cb to your computer and use it in GitHub Desktop.
MySQL 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
// $date = "Tue, 20 Jan 2015 12:20:53 +0900" | |
// $sdate = "2013-08-25T17:00:00+00:00" | |
$tpdate = new DateTime($date); | |
$sdate = $tpdate->format('Y-m-d\TH:i:s'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment