Hello, I have a CGridView with a date column. I don’t want to search for a date range or anything crazy like that, just the date. I have the datepicker jquery calendar all set up, and so when I click a date it appears in the filter field like so: 01/08/2012.
Since the fields in the date column appear as MySQL format (2012-01-08), it doesn’t match up, so I tried the following in the model’s search function:
My formatDate function transforms the date into MySQL format and it absolutely works correctly, but unfortunately, this doesn’t work and it produces 0 results. When I input the date manually in the search function, like so: