I want to find the 5th Business working day of every month .
Can someone help me with syntax expression ?
I want to find the 5th Business working day of every month .
Can someone help me with syntax expression ?
fifthBusinessDay = Enumerable.Range(1, 31) _
.Select(Function(day) New DateTime(Now.Year, Now.Month, day)) _
.Where(Function(d) d.DayOfWeek <> DayOfWeek.Saturday AndAlso d.DayOfWeek <> DayOfWeek.Sunday) _
.ElementAt(4).ToString("dd/MM/yyy")
Regards,