Datepicker integration to exclude days

Datepicker integration to exclude days


Hallo all.
I need to configure the datepicker to disable days from a date array
in a dynamic way.
I have a javascript Array that contains dates that I want to enable in
a yyyymmgg pattern as shown in this code
http://pastie.org/565043
I need to integrate these information to create a datepicker with only
that days enable.
Is there a simple way to achieve this goal? Or some suggestions?
Kind regards
Massimo