code: public static String format(Date date) {
          String format = LOCAL_DATE_FORMAT.format(date);
          // Java 6 does not have a convenient way of having the colon in the timezone offset
          return format.substring(0,22) + ":" + format.substring(22);
      }
docs: Formats a date as a string that can be sent to the Box API.
  @param  date the date to format.
  @return      a string containing the formatted date.