MCPcopy Create free account
hub / github.com/TanStack/ai / formatDate

Function formatDate

examples/ts-react-search/src/utils/formatDate.ts:1–8  ·  view source on GitHub ↗
(date: string)

Source from the content-addressed store, hash-verified

1function 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
10export default formatDate

Callers 4

DatePickerFunction · 0.85
DisputesTableFunction · 0.85
SettlementsTableFunction · 0.85
OrdersTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected