code: public static String toIso8601(Date date) {
          if (date == null) return null;
          return ISODateTimeFormat.dateTimeNoMillis().withZoneUTC().print(date.getTime());
      }
docs: Returns a ISO8601 string of the given date.
  @param date  the date
  @return ISO8601 formatted date (UTC)