How to format non-native date picker state
What I am trying to do:
I'm trying to set the value to a Y-m-d format for a non-native
DatePicker
What I did:
I tried to use different state methods to format the date.
My issue/the error:
The state is not set correctly, it returns a date that I do not want which results to an exception in other parts of the code.
Code:
2 Replies