Attempts to parse an input date using the input date culture setting.
- Namespace
- Statiq
.Common - 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 DateTime instance. |
Return Value
| Type | Description |
|---|---|
| bool | true if the input string could be parsed, false otherwise. |