Show only custom dates for DatePicker

Show only custom dates for DatePicker

I have a datepicker and trying to configure setDate to take in custom dates that i have set. 

The dates are coming from a database and only these dates should be displayed with the rest disabled.

How could i disable all dates except for the ones i have set?