code: public String format(Date date) {
  		Calendar cal = new GregorianCalendar();
  		cal.setTime(date);
  		return DatatypeConverter.printDateTime(cal);
  	}
docs: Formats a given date to the xs:dateTime format of XML.
  
  @param date
  Date to be formatted.
  @return String formatting the given date.