Highlighting 2nd Saturday

Hai, i want to highlight 2nd and 4th saturdays in dhtmlx gantt, can anyone help me


Hello Narendar,
If you want to highlight the 2nd and 4th Saturdays, it means that you want to highlight only even Saturdays as the maximal number of the weekends for a month 5.
You can use the following logic.
First, you check that the day is Saturday:

date.getDay() == 6

Then, you need to check that the Saturday is even. So, you divide the day on 7 and use the Math.ceil() function to check the week number (it starts from 1). After that, you check that the value is even by dividing it on 2 and obtaining the remainder.
Here is an example of how it might be implemented: