Optional
format?: stringThe date format specification of the dateString. The format can be any expression that evaluates to a string literal, containing 0 or more format specifiers. For a list of specifiers available, see Format Specifiers.
If unspecified, $dateFromString uses "%Y-%m-%dT%H:%M:%S.%LZ" as the default format.
4.0
Optional
onOptional. If $dateFromString encounters an error while parsing the given dateString, it outputs the result value of the provided onError expression. This result value can be of any type.
If you do not specify onError, $dateFromString throws an error if it cannot parse dateString.
Optional
onOptional. If the dateString provided to $dateFromString is null or missing, it outputs the result value of the provided onNull expression. This result value can be of any type.
If you do not specify onNull and dateString is null or missing, then $dateFromString outputs null.
Optional
timezone?: tzExpressionThe time zone to use to format the date.
Note: If the dateString argument is formatted like '2017-02-08T12:10:40.787Z', in which the 'Z' at the end indicates Zulu time (UTC time zone), you cannot specify the timezone argument.
Generated using TypeDoc
Converts a date/time string to a date object.