IsWeekend
Returns true
if the given DateTime
is a not weekday, false
otherwise.
- Use
DateTime.DayOfWeek
to check if the givenDateTime
is 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.