-
Notifications
You must be signed in to change notification settings - Fork 728
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: Macro Tokens for All Formats and Export expandMacroTokens function #1638
Comments
You can use console.log(DateTime.parseFormatForOpts(DateTime.DATE_MED_WITH_WEEKDAY)); // outputs: EEE, MMM d, yyyyy
console.log(DateTime.expandFormat('DDD')); // outputs: MMMM d, yyyyy Let me know if this solves your use cases. |
|
|
I am currently using macro tokens for date formats, and I need to expand them for placeholders. However, I have encountered two issues:
(i) The expandMacroTokens functions are not exported, which makes it challenging to use them for custom formatting.
(ii) Not all Luxon formats have corresponding macro tokens (e.g., DATE_MED_WITH_WEEKDAY).
It would be extremely helpful if macro tokens could be added for every format, and if the expandMacroTokens functions could be exported for easier customization.
Thank you for considering this feature request.
The text was updated successfully, but these errors were encountered: