DatePicker defaultValue error: Invalid ISO 8601 date string
#2264
-
Step to Reproduce:
<DatePicker.Root defaultValue={['2024/12/31']}> and get the What is the expected value for defaultValue props? |
Beta Was this translation helpful? Give feedback.
Answered by
segunadebayo
Mar 31, 2024
Replies: 1 comment
-
Hi @cholazzzb, The ISO format is YYYY-MM-DD Learn more here https://www.iso.org/iso-8601-date-and-time-format.html |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
segunadebayo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @cholazzzb,
The ISO format is YYYY-MM-DD
Learn more here https://www.iso.org/iso-8601-date-and-time-format.html