Forums

How do I set first weekday for datepicker

fribse 03 May, 2016
I've tried using the old method from CFv4, by just using a locale, I've also tried using this in a JS module:
$("#foedsel1").datepicker({firstDay: 1});
but neither works.
I've also tried entering firstDay=1 or firstDay:1 in the extra params field, but that didn't give me anything either...
fribse 04 May, 2016
Hi Calculus
Thankyou very much, I've already gone through those, and used the info from them, but they didn't tell me how to change the first weekday in the datepicker.
fribse 04 May, 2016
Hi Bob

I must be blind, I did go through the FAQ, this is where I got the limitation in setting future dates for DOB, but I dont see how to change the weekshowing in the calender to start on monday and end on sunday.
I've tried using the Open Days, and set it to [1.2.3.4.5.6.0] but that didn't change it.
fribse 04 May, 2016
Ahh, found it, did you just add it?🙂
data-shortdays_indexes=[1, 2, 3, 4, 5, 6, 0] inserted into Extra Params did the trick🙂
GreyHead 04 May, 2016
Hi fribse,

No recent changes, it's been there a few months.

Bob
This topic is locked and no more replies can be posted.