uxsolutions / bootstrap-datepicker

A datepicker for twitter bootstrap (@twbs)
Apache License 2.0
12.66k stars 6.06k forks source link

Datepicker startDate is not working #2209

Open Deimos620 opened 7 years ago

Deimos620 commented 7 years ago

I am using recent version of bootstrap-datepicker. I am trying to set startdate / enddate , but not working for me. It always keep starting from current date. I am using bootstrap-datepicker 1.6.4 Here is my code.

var startDate = "1987-07-01"; var endDate = "1991-10-06"; $(".datepicker").datepicker({ format: 'yyyy-mm-dd', startDate: startDate, endDate: endDate });

Would you like to provide me a correct solution to help me?

Deimos620 commented 7 years ago

One more question: I am trying to do it in demo site. https://uxsolutions.github.io/bootstrap-datepicker But when I set startdate / enddate as string , nothing happened when I click the datepicker.

albertoav commented 7 years ago

Deimos620, i'm having the same problem. Did you find a solution that can share with me?

ivanvs commented 6 years ago

Have you managed to fix this issue?

fangtailiang commented 6 years ago

这个问题有解决吗?