(amount: number, currency: string = 'USD')
| 63 | const date = toValidDate(dateString); |
| 64 | if (!date) return '—'; |
| 65 | const formatOptions: Intl.DateTimeFormatOptions = { |
| 66 | year: 'numeric', |
| 67 | month: 'short', |
| 68 | day: 'numeric', |
| 69 | }; |
| 70 | if (isDateOnlyString(dateString)) { |
| 71 | formatOptions.timeZone = 'UTC'; |
| 72 | } |
| 73 | return date.toLocaleDateString('en-US', formatOptions); |
no outgoing calls
no test coverage detected