You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Excel has (at least) two special locales that mean "use system default":
[$-F800] or [$-x-sysdate]
[$-F400] or [$-x-systime]
By default the formatter should probably ignore these, because it has no knowledge of what the system default formats are. At the very least, it should be using the provided locale if this modifier is set.
Settings could be added so that the caller can simply define what format to use instead of ignoring it:
It would also be preferable if things like [>1234]yyyy;dddd were not allowed in the pattern. But what about setting calendars and digit systems? It may make sense to do this:
numfmt("[$-F800]yyyy-mmm-dd",{// Thai digits, calendar, and language:sysdate: "[$-0D07041E]dddd, mmmm dd, yyyy",});
Seems like the most sensible thing to do is parse the options but restrict the pattern to:
Excel has (at least) two special locales that mean "use system default":
[$-F800]
or[$-x-sysdate]
[$-F400]
or[$-x-systime]
By default the formatter should probably ignore these, because it has no knowledge of what the system default formats are. At the very least, it should be using the provided locale if this modifier is set.
Settings could be added so that the caller can simply define what format to use instead of ignoring it:
The text was updated successfully, but these errors were encountered: