Timestamps more formatting options #4981
Replies: 3 comments 3 replies
-
The fixed formats were chosen because they are i18n friendly. Arbitrary format strings can lead to cases where it looks better in one language but looks unnatural in another language. |
Beta Was this translation helpful? Give feedback.
-
+1 to adding support for long and/or short day formatting options. A bot I am developing features a reminder system, of which users can set daily and weekly reminders for whatever they may need. When users create said daily or weekly reminder, the bot will reinforce the time (and day of the week) that they'll be reminded, mostly for confirmation reasons. While I am able to use the |
Beta Was this translation helpful? Give feedback.
-
Any chance we could see some work be put into this? Would likely be a very quick task implement some more formatting options, that are basically chopped up of the ones that already exist. Formatting options I'd love to see are: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
The current timestamp formatting options are extremely limiting and difficult to work with.
For instance there is currently no way to show weekdays without using the absolute longest option, which is really hard to make look good.
What I'd like to see is formatting like date-fns
format()
that is based on Unicode technical standard #35https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
https://date-fns.org/v2.28.0/docs/format
Edit:
Or if that's not viable, I'd love to see short and long weekday (i.e Wed & Wednesday) and a shorter long date like 24. May.
Beta Was this translation helpful? Give feedback.
All reactions