DateTimeExtensions.GetLocalDayName method

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

GetLocalDayName(DateTime)

Extension method

Gets the name of the day according to the current culture.

public static string GetLocalDayName(this DateTime date)

Parameters

date DateTime

An instance of DateTime representing the date.

Returns

The local name of the day.

GetLocalDayName(DateTime, CultureInfo)

Extension method

Gets the name of the day according to culture.

public static string GetLocalDayName(this DateTime date, CultureInfo culture)

Parameters

date DateTime

An instance of DateTime representing the date.

culture CultureInfo

The instance of CultureInfo to be used.

Returns

The local name of the day.