* Convert to ISO string (YYYY-MM-DD).
()
| 163 | * Convert to ISO string (YYYY-MM-DD). |
| 164 | */ |
| 165 | public toString(): string { |
| 166 | const y = String(this.#year).padStart(4, "0"); |
| 167 | const m = String(this.#month).padStart(2, "0"); |
| 168 | const d = String(this.#day).padStart(2, "0"); |
| 169 | return `${y}-${m}-${d}`; |
| 170 | } |
| 171 | |
| 172 | /** |
| 173 | * Compare two dates for sorting. |
nothing calls this directly
no outgoing calls
no test coverage detected