code: public static String getJavaISO8601Time(Date date) {
          final DateFormat formatter = new SimpleDateFormat(JAVA_ISO8601_PATTERN, LOCALE_US);
          formatter.setTimeZone(UTC_ZONE);
          return formatter.format(date);
      }
docs: Returns the UTC date/time String for the specified value using Java's version of the ISO8601 pattern,
  which is limited to millisecond precision.
  
  @param date
  A <code>Date</code> object that represents the date to convert to UTC date/time in Java's version
  of the ISO8601 pattern.
  
  @return A <code>String</code> that represents the UTC date/time for the specified value using Java's version
  of the ISO8601 pattern.