Open sigurdne opened 8 years ago
dateSeparator
to be locale-specific, you can set dateSeparator
, dateFormat
and dateTimeFormat
in locale files.
For example, you want "/" as a date separator, so you can set it in "DateTimePicker-i18n-en-US.js" file as - dateSeparator: "/",
dateFormat: "MM/dd/yyyy",
dateTimeFormat: "MM/dd/yyyy HH:mm"
But this will be global, the same date separator should be used for all fields.
dateSeparator
, timeSeparator
, timeMeridiemSeparator
, dateTimeSeparator
, monthYearSeparator
. Can you list fields for which data attribute should be added?
Since there was no such requirement these data attributes were not added.
Would it be possible to use the forward slash as separator ? As in
dd/MM-yyyy
https://en.wikipedia.org/wiki/Date_format_by_countryRegards