I use Grails 2.0.3 and am comparing a a date string post value using creatCriteria and i have used below methods to convert the string into date but it always empty ? when i try , i can use params.date() method since i pass only one string ,for searching it can be date in one time ,or it can be number and so on ...
println Date.parse('2013-02-05')
my creatCriteria
def vDate = new Date().parse(query.toString())
{
eq('dateCreated',vDate)
}
what am missing or any alternative ? i still believe that this trivial issue has to be resolved enough for future use?