DateTimeExtensions.GetDayNumberAndSuffix method

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

GetDayNumberAndSuffix(DateTime)

Extension method

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

public static string GetDayNumberAndSuffix(this DateTime date)

Parameters

date DateTime

The date.

Returns

The day number and ordinal suffix.