-
Notifications
You must be signed in to change notification settings - Fork 729
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
Add support for day ordinals depending on Locale #1411
Comments
Luxon depends on the Intl API as its source of locale data. As far as I know there is currently no API to obtain the ordinal suffix for a number. You can get the type of suffix via |
Yeah, we'll definitely support this when Intl does. Closing for now though. |
Any news on this issue ? |
Unfortunately nothing in regards to browser/platform support has changed. The Intl API still does not support this, see the above linked issue. |
I cannot see any way to get day ordinals with Luxon.
In moment, you can get these using: moment.localeData().ordinal(23) which will return '23rd'
or you can use the format string 'do' eg: 'do MMM YYYY'
It would be really good to see similar functions in Luxon ...
The text was updated successfully, but these errors were encountered: