(date: string)
| 1 | function formatDate(date: string) { |
| 2 | return new Intl.DateTimeFormat('en-GB', { |
| 3 | year: 'numeric', |
| 4 | month: 'short', |
| 5 | day: '2-digit', |
| 6 | timeZone: 'UTC', |
| 7 | }).format(new Date(date)) |
| 8 | } |
| 9 | |
| 10 | export default formatDate |
no outgoing calls
no test coverage detected