Show Only Month And Year In Cjuidatepicker

HI All,

I am trying to using CJUIDatepicker to display only month and year. I have gone through the documentation for achieving this but it seems there is no option available.

Anyone who has already achieved this before. Please let me know.

Thanks.

You can specify date format:




$ui->widget('DatePicker', array(

    'model'=>$model,

    'attribute'=>'attribute',

    'options'=>array(

        'dateFormat'=>'mm.yy',

        'minDate'=>0,

    ),

));



… and any other options described there: http://api.jqueryui.com/datepicker/

Thanks for the suggestion…it actually works…only problem is, when the datepicker shows up, it still shows everything, the day the month and the year…but when u select an item, that is when it shows the format you have specified.

How do i get to show only a list of years…i don’t know if this makes sense!!