ToLongDateString(DateTime, IExecutionContext, string) Method
Gets a long date display string using the date display culture setting.
Namespace
Statiq.Common
Containing Type
DateTimeCultureExtensions

Syntax

public static string ToLongDateString(this in DateTime dateTime, IExecutionContext context, string targetCulture = "en-GB")

Parameters

Name Type Description
dateTime DateTime The DateTime to generate a string for.
context IExecutionContext The execution context.
targetCulture string The culture that should be used if the date display setting isn't provided. If the current culture is of the same family, then it will be used. If not, the specified target culture will be used.

Return Value

Type Description
string A long date display string.