code: public static String formatDate(Date date) {
          SimpleDateFormat formatter = new SimpleDateFormat(TIMESTAMP_FORMAT);
          return formatter.format(date);
      }
docs: Format a date for the journal or the logger.