In this article you will learn how to hide weekends in Shar Point calendar View.
SharePoint provides a calendar which can be used to track upcoming events and schedules. OOB calendar is quite powerful - It can be used to track deadlines, implement reminder alert, add workflow to achieve business logic, integrate with other OOB web parts and so on. By default the Calendar would be displayed as the following: As you can see it even includes the weekends in the view which is by design. In one of the project requirements I had to hide the weekends from the view so that the users see only the week days. Let’s see how to do it First step is to set Monday as start date in the calendar view. In order to do this go to Site settings. Click on Regional settings. By default the first day of the week is set to Sunday. Change first day of week to Monday. Now the Saturday and Sunday columns would align towards the end the calendar. We can hide those using CSS. In order to do this, from Site settings edit the calendar view page. Add Content Editor Web Part (CEWP) to the calendar page as below: From the CEWP, click on Edit Source and add the css to hide the calendar columns that correspond to Saturday and Sunday. Place the following CSS on to the CEWP script window:
Getting Started with SharePoint Framework Development using TypeScript, PnP JS, and React JS