Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add support for advanced dayjs formats #261

Open
sfghuis opened this issue May 13, 2024 · 3 comments
Open

[Feature Request] Add support for advanced dayjs formats #261

sfghuis opened this issue May 13, 2024 · 3 comments

Comments

@sfghuis
Copy link

sfghuis commented May 13, 2024

Hi!

Is it within the scope of this package to add advancedhttps://day.js.org/docs/en/plugin/advanced-format formats including ISO week?

I currently want to be able to select months or weeks depending on specific user inputs. If it is within scope I would not mind adding it myself.

@AnnMarieW
Copy link
Collaborator

Hi @sfghuis

Did you check out the DateProvider? https://www.dash-mantine-components.com/components/datesprovider

@sfghuis
Copy link
Author

sfghuis commented May 13, 2024

@AnnMarieW

If we understand eachother I can add the js scripts as external scripts and then use the WW-YYYY format?

@AnnMarieW
Copy link
Collaborator

AnnMarieW commented May 13, 2024

I suggest running this example first to make sure it works, then modify it according to your needs https://www.dash-mantine-components.com/components/datesprovider#locale

It looks like once you add that script, then you can use advanced formats in the Value Format. More info here: https://www.dash-mantine-components.com/components/dateinput#value-format

@AnnMarieW AnnMarieW changed the title Add support for advanced dayjs formats [Feature Request] Add support for advanced dayjs formats Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants