I am using postrges db. My domain has a date field:
java.util.Date requestedDate;
I am trying to search by date in the controller:
eq ("requestedDate", requestedDate)
This works great, but the problem is that the date and time must be exactly for this. But in the application, the user enters only the date the elements were searched (for example, give me all the requests made in 2014-02-05, and the browser application will add the current time to the request). Thus, the comparison is not performed because the time entered by the user is different from the time when creating the request. I tried 'like' , but it throws an error.
How to compare only part of the date?
vikas source share