Summary
Attempts to parse and input date using the input date culture setting.
- Assembly
- Wyam
.Common .dll - Namespace
- Wyam
.Common .Execution - Containing Type
- Date
Time Culture Extensions
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 System.DateTime instance. |
Return Value
Type | Description |
---|---|
bool | true if the input string could be parsed, false otherwise. |