public static <D extends Comparable> DateExpression<D> date(Class<D> type, DateTimeExpression<?> dateTime) {
        return Expressions.dateOperation(type, Ops.DateTimeOps.DATE, dateTime);
    }
Convert timestamp to date

@param type type
@param dateTime timestamp
@return date
querydsl-sql/src/main/java/com/querydsl/sql/SQLExpressions.java