js-joda/js-joda-locale

Get first day of week for Locale

alamothe opened this issue · 1 comments

How do we get first day of week for a given Locale?

E.g. for some locales it is SUNDAY, while for most it is MONDAY.

Thanks!

Hi,

thanks for using js-joda-locale!

You could get an instance of WeekFields using WeekFields.of(Locale) ... and then use the .firstDayOfWeek() function... which will return a DayOfWeek instance

Hope this helps? I will close this issue, feel free to reopen if you have further questions

Regards, Pattrick