IsWeekend
Returns true if the given DateTime is a not weekday, false otherwise.
- Use
DateTime.DayOfWeekto check if the givenDateTimeis a Saturday or Sunday.
Returns true if the given DateTime is a not weekday, false otherwise.
DateTime.DayOfWeek to check if the given DateTime is a Saturday or Sunday.