chrisdavies / tiny-date-picker

A small, modern, dependency-free date picker
https://chrisdavies.github.io/tiny-date-picker/
415 stars 88 forks source link

Using format Locale Date dd/mm/yyyy #123

Open nguyenpr9 opened 3 years ago

nguyenpr9 commented 3 years ago

When i using format like that, it highlight current date instead of selected date. I try with toLocaleDateString(vi-VN'') format(date) { return date.toLocaleDateString('vi-VN'); },

ehrenberg commented 3 years ago

Possible with following format: format(date) { return date.toLocaleDateString('de-DE', {day:'2-digit', month: '2-digit', year: 'numeric'}); },