17
Views
3
Comments
Solved
Customized Calendar
Application Type
Traditional Web, Mobile, Reactive, Service

Hi Guys, I'm trying to build my own customized calendar where I stuck with disabling the weekends (User cannot select weekend dates).
Pls suggest me some forge components if it is available or suggest some logical flows.
Thanks in advance..!

Solution

Hi Kishore,

We have done something very similar to what you are trying to do. 

You need to get the selected date 'onselect' action then use 'DayOfWeek' function to get the day you will get number as an output (for example Saturday is 6) accordingly you need to specify the is weekend variable and disable the weekend.

 

Weekend.PNG
Calender Working days.PNG
Logic.PNG

Thank you @Sanjay Baghel, will try this.

Champion

Hi Kishor,

why you want to create customize calendar when many are there.  If still you want to create calendar then I would suggest there are many JS calendars are there you can pick any one and all are opensource so can modify them as per your requirement. 

10 Best Open Source Free JavaScript Calendars :https://medevel.com/os-js-calendar/

regards

Solution

Hi Kishore,

We have done something very similar to what you are trying to do. 

You need to get the selected date 'onselect' action then use 'DayOfWeek' function to get the day you will get number as an output (for example Saturday is 6) accordingly you need to specify the is weekend variable and disable the weekend.

 

Weekend.PNG
Calender Working days.PNG
Logic.PNG

Thank you @Sanjay Baghel, will try this.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.