Gets the
CultureInfo for the date display culture.
- Namespace
- Statiq
.Common - Containing Type
- Date
Time Culture Extensions
Syntax
public static CultureInfo GetDateTimeDisplayCulture(this IExecutionContext context, string targetCulture = "en-GB")
Parameters
| Name | Type | Description |
|---|---|---|
| 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 |
|---|---|
| CultureInfo | The date display culture. |