code: public void setValue(IPrimitiveType<Date> theValue) {
  		if (theValue != null) {
  			myValue.setValueAsString(theValue.getValueAsString());
  		} else {
  			myValue.setValue(null);
  		}
  	}
docs: Sets the value using a FHIR Date type, such as a {@link DateDt}, or a DateTimeType.