(value: string | Date | undefined)
| 69 | * string when there is no parseable date — callers fall back to a placeholder. |
| 70 | */ |
| 71 | export function formatDateLabel(value: string | Date | undefined): string { |
| 72 | const date = parseDateValue(value) |
| 73 | if (!date) return '' |
| 74 | return date.toLocaleDateString('en-US', { year: 'numeric', month: 'short', day: 'numeric' }) |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * Compact label for a date range (e.g. `May 8 - May 12, 2026`). Mirrors |
no test coverage detected