Date Picker


I have added a date picker:

	<div class="row">

		<?php echo $form->labelEx($model,'bookdate'); ?>


                    $this->widget('zii.widgets.jui.CJuiDatePicker', array(

                                  'name'=>'bookdate', // the name of the field


                                  // additional javascript options for the date picker plugin



                                  'dateFormat'=>'yy-mm-dd',  // optional Date formatting








		<?php //echo $form->textField($model,'bookdate'); ?>

		<?php echo $form->error($model,'bookdate'); ?>


But I would like to disable some dates in the date picker.

I have found how to do that in "plain Jquery"

Any ideas how to do that in Yii??


Link to the "plain" Jquery datepicker:

Best Regards

JEsper vels


Found the answer :)




which date you want to disable,please explain it.


Ravi Thanki