Skip to content
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

"Do" does not format day to "1st, 2nd..." #775

Closed
NikkiMeganMoore opened this issue Jan 14, 2020 · 1 comment
Closed

"Do" does not format day to "1st, 2nd..." #775

NikkiMeganMoore opened this issue Jan 14, 2020 · 1 comment

Comments

@NikkiMeganMoore
Copy link

Describe the bug
Not sure if this is a bug or if it is not supported, but when I use the format "MMMM Do, YYYY"
I get the result "January 2o, 2020" instead of the expected "January 2nd, 2020"

Expected behavior
Using "Do" should format as "1st", "2nd", etc. like momentjs

Information

  • Day.js Version 1.8.16
  • OS: macOS 10.14.6
  • Browser: Chrome 79.0.3945.117
@iamkun
Copy link
Owner

iamkun commented Jan 15, 2020

https://github.com/iamkun/dayjs/blob/dev/docs/en/Plugin.md#advancedformat

@iamkun iamkun closed this as completed Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants