wwilsman / Datepicker.js

Datepicker.js
http://wwilsman.github.io/Datepicker.js
MIT License
39 stars 20 forks source link

Days of week don't match when weekStart>0 #15

Open jmaza-itix opened 2 years ago

jmaza-itix commented 2 years ago

If you change weekStart=1 so Monday is the first day of week, it still shows Sun as first day

wakamin commented 3 months ago

I still have this issue, first day always Sunday even weekStart set to 1 or 2.

wakamin commented 3 months ago

Need to set i18n.weekdays. In my case, I'd like start of week on Monday.

new Datepicker('#datepicker', {
    weekStart: 1,
    i18n: {
        weekdays: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
    }
});

Not sure if this is the proper method