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.
i've figured it out. lol year was not in a correct format
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.