T00rk / bootstrap-material-datetimepicker

Datepicker for bootstrap-material
http://t00rk.github.io/bootstrap-material-datetimepicker/
MIT License
9 stars 4 forks source link

Navigation and Selection buttons missing when we use startDate & endDate attribute with a language with separate set of characters #210

Open sauravshekhars opened 6 years ago

sauravshekhars commented 6 years ago

bootstrap-material-datetimepickerwont wont load navigation buttons and will have dates as inactive for locales which use seperate set of characters like hindi or arabic, but will work perfectly fine for languages like spanish, french.

screenshot from 2018-07-09 18-11-02

screenshot from 2018-07-09 19-01-29

My JS code is :

$("dt_cal_233031ID").bootstrapMaterialDatePicker({ format: "MM/DD/YYYY", minDate: "01/01/1900", maxDate: "12/31/2049", weekStart: 0, time: false, lang: hi, okText: "पूर्ण", cancelText: "रद्द करें" });

sauravshekhars commented 6 years ago

I found that this works perfectly when I don't use minDate and maxDate attributes, but since they are critical to the business use case I can't do away with this. I need to show only a specific year range on the Calendar.