DateTimeCultureExtensions Class
Extensions for working with input and output date cultures.
Namespace
Statiq.Common
Base Types
  • object
graph BT Type-->Base0["object"] Type["DateTimeCultureExtensions"] class Type type-node

Syntax

public static class DateTimeCultureExtensions

Methods

Name Return Value Summary
GetDateTimeDisplayCulture(IExecutionContext, string) CultureInfo
Gets the CultureInfo for the date display culture.
static
GetDateTimeInputCulture(IExecutionContext) CultureInfo
Gets the CultureInfo for the date input culture.
static
ToLongDateString(DateTime, IExecutionContext, string) string
Gets a long date display string using the date display culture setting.
static
ToShortDateString(DateTime, IExecutionContext, string) string
Gets a short date display string using the date display culture setting.
static
TryParseInputDateTime(IExecutionContext, string, DateTime) bool
Attempts to parse and input date using the input date culture setting.
static