Could not cast date to specific format #901
Closed
codeallday31
started this conversation in
General
Replies: 1 comment
-
problem solved 😅 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone, I am new to this package and I having trouble with the date casting. According to the documentation, you can cast dates and specify their format using:
#[WithCast(DateTimeInterfaceCast::class, format: 'Y-m-d')]
. However, when I apply this to my Data class, its not working as expected.I am using, v4.
I'd appreciate any guidance on resolving this 😄
Beta Was this translation helpful? Give feedback.
All reactions