skip to Main Content

Php – How to create Carbon object from this string: 2022-06-21T05:52:46.648533678Z?

How to create DateTime object with PHP from this string: 2022-06-21T05:52:46.648533678Z? There is nine numbers after 'dot', after seconds. I tried to use next variants: <?php Carbon::createFromFormat('Y-m-dTH:i:s.uP', '2022-06-21T05:52:46.648533678Z'); Carbon::createFromFormat('Y-m-dTH:i:s.vP', '2022-06-21T05:52:46.648533678Z'); And always get an error: The timezone could not be…

VIEW QUESTION
Back To Top
Search