You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There isn't an option for changing starting day of weeks. In some countries Monday is the first day of the week. So It must be iterate the day according to that.
The text was updated successfully, but these errors were encountered:
have a look at the project the boostrap calendar is forked from https://github.com/bichotll/bic_calendar - it's starting day is monday, not sunday. that was one of the reasons i created this fork, as an english translation. but you're probably correct, that is an option i should look into adding as a configuration option.
// Modify the related functionfunctioncalculateWeekday(day,month,year){vardateObj=newDate(year,month,day);varnumDay=dateObj.getDay();/* EMR */numDay-=startWeekDay;if(numDay==-1)numDay=6;/* END EMR */returnnumDay;}// Initialize the param/* EMR */varstartWeekDay=0;// Default: sundayif(typeofargs.startWeekDay!='undefined')startWeekDay=args.startWeekDay;/* END EMR */// Use it in your mainstartWeekDay: 1,
There isn't an option for changing starting day of weeks. In some countries Monday is the first day of the week. So It must be iterate the day according to that.
The text was updated successfully, but these errors were encountered: