date-picker-svelte icon indicating copy to clipboard operation
date-picker-svelte copied to clipboard

picker title format request...

Open Neptunium1129 opened this issue 6 months ago • 4 comments

image

need an option to change the location format title

now : mm - yyyy kor : yyyy - mm (2023 - 11)

In Korea, when reading the calendar, they often start with the year. For example, instead of saying "April 5th, 2023," they might say "2023 April 5th." This format prioritizes the year before the month and day.

Neptunium1129 avatar Dec 05 '23 14:12 Neptunium1129

example : image lang : ko https://raw.githack.com/mymth/vanillajs-datepicker/v1.3.4/demo/index.html

Neptunium1129 avatar Dec 05 '23 14:12 Neptunium1129

Makes sense. From that datepicker, zh-TW, zh-CN, ja, ko and ar have the year first. Would be good to find a full list somewhere.

Implementation: Add a monthFirst property to InnerLocale. Add code property to DateFnsLocale object and use that to infer monthFirst in localeFromDateFnsLocale()

probablykasper avatar Dec 05 '23 23:12 probablykasper

Makes sense. From that datepicker, zh-TW, zh-CN, ja, ko and ar have the year first. Would be good to find a full list somewhere.

Implementation: Add a monthFirst property to InnerLocale. Add code property to DateFnsLocale object and use that to infer monthFirst in localeFromDateFnsLocale()

Can I see an example?

Neptunium1129 avatar Dec 06 '23 14:12 Neptunium1129

I need this too.

sinbino avatar Dec 21 '23 10:12 sinbino