code: public String marshal(Date value) {
  		
  		if(value == null){
  			return null;
  		}
  		
  		return formatter.print(new DateTime(value));
  
  	}
docs: Marshal a Date to a String for use by JAXB.
  
  returns date in yyyy-mm-dd format
  
  @param value Date object to marshal.
  @return String form of date.