-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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] DateAdapter: support formatByString function #18710
[Feature Request] DateAdapter: support formatByString function #18710
Comments
This is not supported by Intl.DateTimeFormat, use a more complete library like date-fns for custom formatting. |
@KaelWD, I am using the @date-io/date-fns adapter in the Vuetify config, so I expect the function that it supports, to be supported in the useDate function. Now that I try it in Vuetify Playground, it does work, but TypeScript says the function doesn't exist. So I guess this is more of a Bug Report... Should I make a separate issue for this? |
Hmm yeah we probably need some way to configure the types if you're using a full adapter. |
Problem to solve
I want to use the date adapter to format a date with a custom string format. Currently you have to use the format function with predefined options.
Proposed solution
Implement the @date-io formatByString function:
formatByString(value: TDate, formatString: string): string;
The text was updated successfully, but these errors were encountered: