Date filter how to in Gridview

Well I can filter on any fields including the column from related fields, but I wonder how I can filter on date fields.

One solution I came across is date-picker for filter, I have not tested this, but my requirement is little different.

for example I have duplicated the datetime column in gridview and formatted it like




'attribute'=>'discharge_date',

 'format'=>['DateTime','php:M']



So that the column will show only months.The column is showing the months correctly.

Now I want to filter by month on this column.

Any suggestion will be greatly appreciated. Thanks.