Skip to content

Number formatting reference#

This page shows the canonical number, currency and date layouts that the components produce for each locale.

For detailed prop lists, see the NumberFormat component and the DateFormat component.

The tables below focus on the locales most commonly used at DNB (nb-NO, en-GB, sv-SE and da-DK), but Eufemia supports many more region/locale combinations. Any valid BCP 47 locale supported by the browser's Intl APIs – for example en-NO (English – Norway) or en-US – can be passed to the locale prop and will be formatted accordingly.


Phone number#

Bank account number#

National identification number#

Organization number#

Numbers#

Variationnb-NOen-GBsv-SEda-DK
Default
0 decimals
3 decimals
Negative value
Sign display (except zero)
Invalid input

Compact#

Stylenb-NOen-GBsv-SEda-DK
Short
Long

Percentage#

Stylenb-NOen-GBsv-SEda-DK
Default
3 decimals

Amount and Currency#

Variationnb-NOen-GBsv-SEda-DK
Default
Symbol display
Narrow symbol display
Name display
Code display
0 decimals
3 decimals

Date#

Stylenb-NOen-GBsv-SEda-DK
Full
Long
Medium
Short

Date + time#

Stylenb-NOen-GBsv-SEda-DK
Full
Long
Medium
Short

Date without year#

The component always includes the year unless hideYear or hideCurrentYear is set.

Stylenb-NOen-GBsv-SEda-DK
Full
Long
Medium
Short

Date without year + time#

Stylenb-NOen-GBsv-SEda-DK
Full
Long
Medium
Short

Relative time#

All examples below use the same reference point (2026-02-06T12:00:00Z) so the labels stay stable.

Descriptionnb-NOen-GBsv-SEda-DK
Just now
In the past
In the future

Duration strings#

Durationnb-NOen-GBsv-SEda-DK
PT2H30M
P1DT2H30M
Suggest an edit