Created
August 31, 2018 01:23
-
-
Save abelcallejo/47372e76d7c1db9d0b80e9bb8b7cde28 to your computer and use it in GitHub Desktop.
Converting an ISO-8601 formatted data into a specific format
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
<?php | |
$date = new DateTime('2000-01-01'); | |
echo $date->format('Y-m-d H:i:s'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment