DateTimeCultureExtensions Class

Summary

Extensions for working with input and output date cultures.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Execution
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["DateTimeCultureExtensions"] class Type type-node

Syntax

public static class DateTimeCultureExtensions

Methods

Name Value Summary
GetDateTimeDisplayCulture(IExecutionContext, string) CultureInfo
Gets the System.Globalization.CultureInfo for the date display culture.
static
GetDateTimeInputCulture(IExecutionContext) CultureInfo
Gets the System.Globalization.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
GitHub