code: public static String formatTimestamp(@Nullable Date date) {
          return (date != null) ? date.toInstant().toString() : null;
      }
docs: Formats the specified timestamp as an ISO 8601 string with milliseconds and UTC timezone.