core/src/main/java/com/opentext/ia/sdk/support/datetime/Dates.java
@Nullable
  public static String toIso(Date dateTime) {
    if (dateTime == null) {
      return null;
    }
    Calendar calendar = Calendar.getInstance();
    calendar.setTime(dateTime);
    return DatatypeConverter.printDateTime(calendar);
  }
@Nullable
  public static String toIso(Date dateTime) {
    if (dateTime == null) {
      return null;
    }
    Calendar calendar = Calendar.getInstance();
    calendar.setTime(dateTime);
    return DatatypeConverter.printDateTime(calendar);
  }
@ Nullable public static String toIso ( Date dateTime ) { if ( dateTime == null ) { return null ; } Calendar calendar = Calendar . getInstance ( ) ; calendar . setTime ( dateTime ) ; return DatatypeConverter . printDateTime ( calendar ) ; }
Convert a date to <a href="https://tools.ietf.org/html/rfc3339#section-5.6">ISO 8601 dateTime</a> format.
@param dateTime The datetime to convert
@return The dateTime in ISO format
Convert a date to <a href = https : // tools . ietf . org / html / rfc3339#section - 5 . 6 > ISO 8601 dateTime< / a > format .