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