DateTimeExtensions.IsWeekend method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Time.Extensions
Assembly Skybrud.Essentials.dll

IsWeekend(DateTime)

Extension method

Gets whether the specified date is in the weekend.

public static bool IsWeekend(this DateTime date)

Parameters

date DateTime

An instance of DateTime representing the date.

Returns

true if date is in the weekend; otherwise false.