lundi 11 octobre 2021

Parse date format in laravel carbon

I am tryin to parse date format using laravel carbon. Here I tried

dd(Carbon::parse('2021-10-12T09:20:27:915 GMT+0600')->format('Y-m-d h:i:s'));

It shows DateTime::__construct(): Failed to parse time string (2021-10-12T09:20:27:915 GMT+0600) at position 19 (:): Unexpected

Thanks in advance



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire