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.


You can specify date format:

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








… and any other options described there:

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!!