How can I changed the weekend days of the calendar?
The default weekend days are - Saturday and Sunday. I need to change them to be - Saturday and Friday.
I tried to define culture info:
Dim culture As New CultureInfo("he-IL")
culture.DateTimeFormat.FirstDayOfWeek = DayOfWeek.Sunday
culture.DateTimeFormat.CalendarWeekRule = CalendarWeekRule.FirstFullWeek
Calendar.CultureInfo = culture
I tried to change the weekend days on day render event:
If e.Day.Date.DayOfWeek.Equals(DayOfWeek.Saturday) Or e.Day.Equals(DayOfWeek.Friday) Then
e.Cell.CssClass = "rcWeekend rcDisabled"
Else
e.Cell.CssClass = ""
End If
But the class is being override and changed to Saturday and Sunday is "rcWeekend "