Helpful
    Preparing search index...

    Function parseDateTime

    • Parses a string value back to a date format.

      Parameters

      • value: ZDateTime

        The value to parse

      • options: ZDateTimeOptions<Date | null> = {}

        The options to parse with. The most important option here is format. If the format is not specified, then the standard zoned ISO 8601 format is used. The timezone is also used in the case the date does not supply it for string values. If the timezone is not specified then the users timezone is assumed. Finally, the cultural local will default to the users current culture if not specified.

      Returns Date | null

      The date object parsed from the value. Returns null if the value parsed with the given options results in an invalid date.