Created
January 28, 2019 14:24
-
-
Save kylekatarnls/910e2b3ea7e5c9fae3c1ff96c1f156ca to your computer and use it in GitHub Desktop.
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 | |
$inputDateString = '2018-05-12 23:16:46.123456'; | |
$date = new CarbonImmutable($inputDateString); | |
echo $date->toJSON(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment