@phyng/utils
    Preparing search index...

    Function ISO8601ToDate

    • Converts an ISO8601 formatted string to a Date object

      Parameters

      • iso8601: string

        ISO8601 formatted time string

      Returns Date

      Date object

      Throws an error if the input string is not a valid ISO8601 format