code: public Date getDate(final String field, final Date def) {
          Object foo = get(field);
          return (foo != null) ? (Date) foo : def;
      }
docs: Returns the date or def if not set.
  
  @param field The field to return
  @param def   the default value in case the field is not found
  @return The field object value or def if not set.