PHP DateTime format Year bug

71 Views Asked by At

this is the first time i encountered this bug, i usually use the same syntax to format dates. but now, i don't know what happened to DateTime format.

I've tried searching some resources, including Carbon and php DateTime formatting. but no luck.

PS: i am using laravel and it automatically extends timestamps into Carbon instance.

enter image description here

1

There are 1 best solutions below

0
On

i've figured it out. lol year was not in a correct format