kendo-intl icon indicating copy to clipboard operation
kendo-intl copied to clipboard

2-digit format for bg-BG is missing separator

Open tsvetomir opened this issue 6 years ago • 0 comments

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.

tsvetomir avatar Oct 12 '18 07:10 tsvetomir