Skip to content

2-digit format for bg-BG is missing separator #58

@tsvetomir

Description

@tsvetomir

Using a format with '2-digit' parts produces a date with no separators for the bg-BG locale:

const format = { year: 'numeric', month: '2-digit', day: '2-digit' };
formatDate(new Date(), format, 'bg-BG');
// 12 10 2018 г.

Compared to:

const format = { year: 'numeric', month: '2-digit', day: '2-digit' };
new Intl.DateTimeFormat('bg-BG', format).format(new Date())
// 12.10.2018 г.

See runnable demo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions