Aravind E
Aravind E

Reputation: 1061

Boostrap Date picker Year range goes beyond?

I have used bootstrap thai date picker. when i select my year range it show beyond. enter image description here

the below image shows the year range from 2560-2569, but my date picker years starts from 2553.i duno where i went wrong.

    $("#datepicker").datepicker({
        format:'dd/mm/yyyy',
        endDate: '+0d',
        autoclose: true,
        todayHighlight:false
    });

can i know what option will make this to work

Upvotes: 1

Views: 4158

Answers (1)

Rob Branaghan
Rob Branaghan

Reputation: 74

Make sure your using the current version 1.6.4 as found at the following link

https://uxsolutions.github.io/bootstrap-datepicker/

And I didn't need to specify highlight today as false.

$('#datepicker').datepicker({
format: "dd/mm/yyyy",
endDate: "+0d",
autoclose: true,
startDate: '+543y' 
});

Hope this helps!

Upvotes: 2

Related Questions