Calendar default starting/ending day from Monday to Sunday in WEEK VIEW

I can set Start date to Monday by setting :
const viewSettings = {
timeline: {
type: ‘week’,
eventList: true,
startDay: 1,
endDay: 7
}
};

I want end day to be Sunday.
Below is the reference page that i am talking about.
[https://demo.mobiscroll.com/react/timeline/employee-shifts#](http://Employee shift planning)

Hi @nabinkumarkhatiwada :wave:

The endDay: 7 is not a known or supported element since it starts from 0 as it’s mentioned in the docs: Set the last day of the view: Sunday is 0, Monday is 1, etc. - Responsive event calendar documentation for various frameworks | Mobiscroll.

So, the solution would be pretty simple, just use endDay: 0 which will set the last day of the week view to Sunday.

This does not work; Sunday is included, but shows as the first day in the week. Here’s my config.

view: {
  timeline: {
    type: "day",
    size: 20,
    startDay: 1, // Monday
    endDay: 0, // Sunday
    weekNumbers: true,
    resolutionHorizontal: "day",
    eventList: true
  }
},

Hello @Anton_Karlsson :wave:

You can also use the firstDay option with which you can set the first day of the week.