Skip to content

date
@localizer/format 1.1.1

The date provides a convenient way to format date values.

Usage

typescript
import { 
date
} from '@localizer/format';
const
result
=
date
(new
Date
(2025, 2, 23, 12, 59, 0));

Formatter accepts JavaScript Date objects or numbers, which are treated as timestamps (milliseconds since January 1, 1970, 00:00:00 UTC).

Demo

LocaleLocalized value
en-US  American English3/23/2025
fr-FR  French (France)23/03/2025
de-DE  German (Germany)23.3.2025
fi-FI  Finnish (Finland)23.3.2025
sv-FI  Swedish (Finland)2025-03-23
ko-KR  Korean (South Korea)2025. 3. 23.
hi-IN  Hindi (India)23/3/2025

See also