code: private static void writeDate(Date date, CharBuf buffer) {
          SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ", Locale.US);
          formatter.setTimeZone(TimeZone.getTimeZone("GMT"));
          buffer.addQuoted(formatter.format(date));
      }
docs: Serializes date and writes it into specified buffer.