TimeHelper.IsWeekend method
Version 1.1.28
.NET Framework 4.8
| Namespace | Skybrud.Essentials.Time |
|---|---|
| Assembly | Skybrud.Essentials.dll |
IsWeekend(DateTime)
Static
Gets whether the specified date is in the weekend.
public static bool IsWeekend(DateTime date)
Parameters
date
DateTime
The date.
Returns
Returns true if the specified day is weekend; otherwise false.
IsWeekend(DateTimeOffset)
Static
Gets whether the specified date is in the weekend.
public static bool IsWeekend(DateTimeOffset date)
Parameters
date
DateTimeOffset
The date.
Returns
Returns true if the specified day is weekend; otherwise false.