date search

hi frndz… i have a problem please anyone help me…

i have date field in a table.when i am storing the date in Db like this format Y-m-d.

on view page the date format is like this d-m-Y.

during search using CGridview  a error occured....i dnt knw how to fix error.