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