code: @Override
      public void writeDate(Date date) {
          writeAMF3();
          buf.put(AMF3.TYPE_DATE);
          if (hasReference(date)) {
              putInteger(getReferenceId(date) << 1);
              return;
          }
          storeReference(date);
          putInteger(1);
          buf.putDouble(date.getTime());
      }
docs: {@inheritDoc}