TimeUtils.GetDayNumberAndSuffix method

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

GetDayNumberAndSuffix(DateTime)

Static

Gets the day of the month along with the English ordinal suffix based on the specified date.

public static string GetDayNumberAndSuffix(DateTime date)

Parameters

date DateTime

The date.

Returns

The day number and ordinal suffix.

GetDayNumberAndSuffix(DateTimeOffset)

Static

Gets the day of the month along with the English ordinal suffix based on the specified date.

public static string GetDayNumberAndSuffix(DateTimeOffset date)

Parameters

The date.

Returns

The day number and ordinal suffix.