solarnetwork-api-core
    Preparing search index...

    Function dateUrlFormat

    • Format a date into a SolarNet URL UTC date/time format: yyyy-MM-dd'T'HH:mm or ``yyyy-MM-dd` if both the hours and minutes of the date are zero.

      Parameters

      • date: Date

        the date to format

      Returns string

      the formatted date