codetrix - v1.5.0
    Preparing search index...

    Function toISODate

    • Converts a date to an ISO 8601 date-only string (YYYY-MM-DD).

      Parameters

      • date: Date

        The input date.

      Returns string

      ISO date string.

      toISODate(new Date('2025-07-23T12:34:56Z')); // → '2025-07-23'