Uh oh!
There was an error while loading. Please reload this page.
dcc redesign: DatePickerSingle and DatePickerRange - #3495
Conversation
b2d62da to
de88f2bComparede88f2b to
75fd1feCompareAnnMarieW
commented
Nov 11, 2025
Wow! First look at this is amazing 🤩 I love how you can easily skip months and years - that's been a pain point in the old date pickers for a long time. This is an incredible amount of work given that the Radix components does not have date pickers and you had to build all of this from scratch. I see you are still using moment.js for the date formatting. Since they are no longer recommending moment.js to be used in new project, would you consider using one of their recommended alternatives? It might make it easier to add support for locale at some point https://momentjs.com/docs/#/-project-status/ |
KoolADE85
commented
Nov 12, 2025
Thanks @AnnMarieW ! And wow, I did not realize moment was fading away like that! I will take a look at replacing moment - it shouldn't be too much effort there.
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
T4rk1n
commented
Nov 14, 2025
I would also recommend we change to something else, I don't think we use that much moment.js. Luxon seems like a good alternative, I also had a good experience with |
KoolADE85
commented
Nov 17, 2025
Oh nice, |
AnnMarieW
commented
Nov 18, 2025
Sorry to comment on this after you already moved to For example with Also, the |
KoolADE85
commented
Nov 19, 2025
Excellent call @AnnMarieW ! It does support adding locales like that (or from the @ndrezn |
AnnMarieW
commented
Nov 19, 2025
Wow - that's so awesome that you included the locale now. I just wanted to make sure it was possible to add at some point since this has been a frequently requested feature. I think it's OK to document how to add the extra script, since this is a new feature. |
KoolADE85
commented
Nov 20, 2025
oh that's great then! For some reason, I had thought that moment.js had translations bundled in and handled them automatically. But if this actually adds a new translation feature, then even better! |
682d832 to
ab88a95CompareUh oh!
There was an error while loading. Please reload this page.
At long last, here is a PR to modernize the date pickers.
You can play with them here:
https://dcc-redesign.plotly.app/datepickers-single
https://dcc-redesign.plotly.app/datepickers-range
Some improvements:
dcc.Dropdown's look and feelCloses#3391#3451#3425
Fixeshttps://github.com/plotly/dash-design-kit/issues/1504