dayjs icon indicating copy to clipboard operation
dayjs copied to clipboard

Feature request: More localized formats

Open Pacn91 opened this issue 1 year ago • 2 comments

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.

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

Pacn91 avatar Dec 27 '22 12:12 Pacn91