iamkun / iamkun/dayjs

Feature request: More localized formats

Open
#2,174 2 comments 6 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

I'm trying to show in a calendar the month and year only but depending on the locale the month can be on the first place or at the end.

I've checked in the docs (https://day.js.org/docs/en/display/format#localized-formats) but it seems there isn't an option with year and month only.

``` lang-js
dayjs().format("LL")` // December 7, 2022
// what I would like to get: December 2022 or 2022 December (depending on the locale)
```
What I want is possible to do with the current version of DayJS? If so could you tell me how please? If not could you implement more localized formats (like a month and year format only)?

Thanks in advance

**Information**
- Day.js Version 1.11.6
- OS: Win
- Browser Chrome
- Time zone: GMT

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.