(dateString: string)
| 95 | * @returns A formatted date string (e.g., "Jan 22, 2026, 01:30 PM") |
| 96 | */ |
| 97 | export function formatAbsoluteDate(dateString: string): string { |
| 98 | const date = new Date(dateString) |
| 99 | return date.toLocaleDateString('en-US', { |
| 100 | year: 'numeric', |
| 101 | month: 'short', |
| 102 | day: 'numeric', |
| 103 | hour: '2-digit', |
| 104 | minute: '2-digit', |
| 105 | }) |
| 106 | } |
| 107 | |
| 108 | /** |
| 109 | * Format a time into a short format |
no outgoing calls
no test coverage detected