solarnetwork-api-core
    Preparing search index...

    Function iso8601Date

    • Format a date into an ISO 8601 timestamp or date string, in the UTC time zone.

      The output of this format omits the optional date and time delimiters of - and :, as well as any fractional seconds. The output format is like yyyyMMdd'T'hhmmss'Z'.

      Parameters

      • date: Date

        the date to format

      • OptionalincludeTime: boolean

        true to format as a timestamp, false as just a date

      Returns string

      the formatted date string