Skip to content

spatial-monorepo


spatial-monorepo / core/src / formatDate

Function: formatDate()

formatDate(value, locale?): string

Defined in: packages/core/src/tooltip/helpers.ts:31

Formats a timestamp (ms since epoch) or Date object to a locale date string. Accepts an optional BCP 47 locale tag; defaults to the runtime locale.

Parameters

value

number | Date

locale?

string

Returns

string

Released under commercial licensing.