MCPcopy Create free account
hub / github.com/dfinity/orbit / formatLocaleDatetimeString

Function formatLocaleDatetimeString

apps/wallet/src/utils/date.utils.ts:70–76  ·  view source on GitHub ↗
(date: Date | string)

Source from the content-addressed store, hash-verified

68}
69
70export function formatLocaleDatetimeString(date: Date | string): string {
71 if (typeof date === 'string') {
72 date = parseDate(date);
73 }
74
75 return date.toLocaleDateString() + ' ' + date.toLocaleTimeString();
76}

Callers

nothing calls this directly

Calls 1

parseDateFunction · 0.85

Tested by

no test coverage detected