Skip to content

Get the format used by a preset for a given culture? #1126

Discussion options

You must be logged in to vote

So, the answer is no, but Luxon could do it because we have code very similar to that SO answer, used for slightly different purposes. Just needs rearranged (see maybeExpandMacroToken in tokenParser.js). If someone made a small PR to do that, I'd likely take it. In the meantime, that SO link is roughly what I'd recommend too.

Also requested here #839

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by icambron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants