code: public void setDate(final Date date) {
  		if (date == null) {
  			setPartialDate(null, null, null);
  		} else {
  			Calendar cal = Calendar.getInstance();
  			cal.setTime(date);
  			Integer year = cal.get(Calendar.YEAR);
  			Integer month = cal.get(Calendar.MONTH) + 1;
  			Integer day = cal.get(Calendar.DAY_OF_MONTH);
  			setPartialDate(day, month, year);
  		}
  	}
docs: Set the WPartialDateField with the given java date.
  
  @param date the date