code: public void putDateField(String name, long date)
      {
          if (_dateBuffer==null)
          {
              _dateBuffer=new StringBuffer(32);
              _calendar=new HttpCal();
          }
          _dateBuffer.setLength(0);
          _calendar.setTimeInMillis(date);
          formatDate(_dateBuffer, _calendar, false);
          put(name, _dateBuffer.toString());
      }
docs: Sets the value of a date field.
  @param name the field name
  @param date the field date value