Maybe someone will help this. This way i was able to add the datepicker to my field and disabled whatever days I wanted
$form->setHtmlIdPrefix('yourid');
$form = new Varien_Data_Form();
.....
$fieldset->addField('newsletter_date', 'text', [
'label' => Mage::helper('masters')->__('Send At'),
'class' => 'required-entry',
'required' => true,
'name' => 'newsletter_date',
]);
and add this after:
$form->getElement('newsletter_date')->setAfterElementHtml("<script type='text/javascript'>
//<![CDATA[
Calendar.setup({
inputField : 'yourid_newsletter_date',
ifFormat : '%Y-%m-%d',
button : 'call_date',
align : 'Bl',
singleClick : true,
disableFunc: function(date) {
var now = new Date();
if(date.getFullYear() < now.getFullYear()) { return true; }
if(date.getFullYear() == now.getFullYear() && date.getMonth() < now.getMonth()) { return true; }
if(date.getMonth() == now.getMonth() && date.getDate() < now.getDate()) { return true; }
}
});
//]]>
</script>");