Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DateFromString

Index

Properties

Properties

$dateFromString: { dateString: StringExpression<string>; format?: string; timezone?: tzExpression; onError?: any; onNull?: any }

Type declaration

  • dateString: StringExpression<string>
  • Optional format?: string

    The 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.

    version

    4.0

  • Optional timezone?: tzExpression

    The 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.

  • Optional onError?: any

    Optional. 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 onNull?: any

    Optional. 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.

Generated using TypeDoc