coreRuntime/src/sc/dyn/DynUtil.java
public static String formatDate(Date date) {
      return date.toInstant().atZone(ZoneOffset.UTC).format(DateTimeFormatter.ISO_INSTANT);
      /*
      TimeZone tz = TimeZone.getTimeZone("UTC");
      DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'"); // Quoted "Z" to indicate UTC, no timezone offset
      df.setTimeZone(tz);
      return df.format(date);
      */
   }
/** Format dates in 8601 format (there's a JS version of this method too) */
Format dates in 8601 format (there's a JS version of this method too)
Format dates in 8601 format ( there ' s a JS version of this method too )
public static String formatDate(Date date) {
      return date.toInstant().atZone(ZoneOffset.UTC).format(DateTimeFormatter.ISO_INSTANT);
      /*
      TimeZone tz = TimeZone.getTimeZone("UTC");
      DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'"); // Quoted "Z" to indicate UTC, no timezone offset
      df.setTimeZone(tz);
      return df.format(date);
      */
   }
public static String formatDate ( Date date ) { return date . toInstant ( ) . atZone ( ZoneOffset . UTC ) . format ( DateTimeFormatter . ISO_INSTANT ) ; /*
      TimeZone tz = TimeZone.getTimeZone("UTC");
      DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'"); // Quoted "Z" to indicate UTC, no timezone offset
      df.setTimeZone(tz);
      return df.format(date);
      */ }
Format dates in 8601 format (there's a JS version of this method too)
Format dates in 8601 format ( there ' s a JS version of this method too )