code: public StringBuffer format(Date date, StringBuffer toAppendTo,
                                 FieldPosition pos)
      {
          pos.beginIndex = pos.endIndex = 0;
          return format(date, toAppendTo, pos.getFieldDelegate());
      }
docs: Formats the given <code>Date</code> into a date/time string and appends
  the result to the given <code>StringBuffer</code>.
  
  @param date the date-time value to be formatted into a date-time string.
  @param toAppendTo where the new date-time text is to be appended.
  @param pos the formatting position. On input: an alignment field,
  if desired. On output: the offsets of the alignment field.
  @return the formatted date-time string.
  @exception NullPointerException if the given {@code date} is {@code null}.