Highlight weekends without using worktime property

How to highlight or show the weekends in a different color in the timeline area, without using the worktime config property ? …

When using the worktime property, the duration of a task is automatically extended to exclude the week ends…Say, If my task is starting at 1st august 2019 and the duration I enter is 6 months and since i am using the worktime property to highlight the weekends, my duration automatically changes to 8 months…

1 Like

Hello Karthik,
You can directly check if a day is a weekend by using the getDay() function for each date in the timeline_cell_class:
https://docs.dhtmlx.com/gantt/api__gantt_timeline_cell_class_template.html
Here is the snippet:
http://snippet.dhtmlx.com/ff5f2f81f

Thanks …Got it !! :grin: