I'm trying to query an exact date without time, is there a way to do this? Example, return all records that have the date 2013-11-06
.
I've tried the following, but I think it's failing do to the time piece of the date.
//Preset calendar date.
Date searchDate = obj.searchDate();
session.criteriaQuery(TimeSheet.class).add(Restrictions.eq("createDate", searchDate )).list();