Hex Core JS
    Preparing search index...

    Function toISOString

    • Converts the given date time value to an ISO string. The exact precision given is not used, only as far as whether the precision is date- or time-level precision. With a date-level precision, toLocalDateString is used, formatting the value as an ISO string for the date with a zero timestamp. With a time-level precision, Date.toISOString is used.

      Parameters

      • dateTime: DateTime

        The date time value to convert.

      • precision: DateTimePrecision = "second"

        The precision with which to convert.

      Returns string