How do I talk only the dates I have in an array (bootstrap-datepicker)

1

I have the following problem.

I have an array of dates, and I want only these dates to be enabled in the bootstrap-datapicker, I was reading the documentation but I did not find what I wanted!

fechas = ['2018-08-21', '2018-08-22', '2018-08-25', '2018-08-29'];
    
asked by johnnyvargast 21.08.2018 в 17:32
source

1 answer

0

To only enable I think there is no, but you can do the opposite that is to disable dates, all you have to do is make another array with the dates that are going to be disabled and pass them in the disableDates parameter.

link

    
answered by 21.08.2018 в 18:09