#parseDateTime
Parses a string into an ISO 8601 date and time, requiring an exact format when one is given.
#parseDateTime(value, format?)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
value |
path | string |
The date and time text. |
format (optional) |
string |
A .NET date format string, such as yyyy-MM-dd. |
Returns
Section titled “Returns”string — An ISO 8601 date and time.
Examples
Section titled “Examples”Parse a fixed format
Section titled “Parse a fixed format”#parseDateTime($.some.path, 'yyyy-MM-dd')