DatePicker to display format Patterns query #7626
-
I have the need to support these dateFormats(an example of the date we see on the right): ![]() Here I see that when I gave 'd-m-y' as a format Pattern to the DatePicker and when I tried to select date I see the value as: So wanted to understand if DatePicker supports the below formats:
When tried the above formats the DatePicker value didnt appear as expected. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
as outlined in the component description, the
Here you can find the direct link to the format pattern table. (Which should probably the link in the description as well - I created an issue so this can be checked) So to achieve this, you have to apply the correct pattern:
|
Beta Was this translation helpful? Give feedback.
Hi @srinidhikulkarni2
as outlined in the component description, the
DatePicker
and similar components use the Unicode LDML Date Format notation:Here you can find the direct link to the format pattern table. (Which should probably the link in the description as well - I created an issue so this can be checked)
So to achieve this, you have to apply the correct pattern:
d-m-y
dd-MM-yy
d/m/y
dd/MM/yy
y-m-d
yy-MM-dd
y/m/d
yy/MM/dd
F j, Y
…