Hello, I'm trying to make a criteria which works with dates:
Code:
criteria.add(Expression.or(Expression.or(Expression.between("startDate",
sp.getParameter(), sp.getParameter2()), Expression.between("endDate", sp.getParameter(), sp.getParameter2())),
Expression.and(Expression.ge("patternEndDate", sp.getParameter2()), Expression.le("startDate", sp.getParameter()))));
I'd like it to don`t depends on the hours or the minutes, only to compare de day, month and year. Is there anything for that??
Thankls a lot.