DateTimeCultureExtensions.

ToLongDateString(DateTime, IExecutionContext, string) Method

Summary

Gets a long date display string using the date display culture setting.

Syntax

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

Parameters

Name Type Description
dateTime DateTime The System.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.
GitHub