public static <D extends Comparable> DateExpression<D> date(Class<D> type, DateTimeExpression<?> dateTime) {
        return Expressions.dateOperation(type, Ops.DateTimeOps.DATE, dateTime);
    }
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