@phyng/utils
    Preparing search index...

    Function dateToISO8601

    • Converts a Date object to an ISO8601 formatted string

      Parameters

      • date: Date

        The Date object to convert

      Returns string

      ISO8601 formatted time string, e.g., "2023-12-25T08:30:45.123"

      Throws an error if the input date is not a valid Date object