TryParseInputDateTime(IExecutionContext, string, DateTime) Method
Attempts to parse an input date using the input date culture setting.
Namespace
Statiq.Common
Containing Type
DateTimeCultureExtensions

Syntax

public static bool TryParseInputDateTime(this IExecutionContext context, string s, out DateTime result)

Parameters

Name Type Description
context IExecutionContext The execution context.
s string The string to parse.
result DateTime The resulting DateTime instance.

Return Value

Type Description
bool true if the input string could be parsed, false otherwise.