code: private String formatDateTime(Object value)
     {
        String result = null;
        if (value instanceof Date)
        {
           result = m_formats.getDateTimeFormat().format(value);
        }
        return result;
     }
docs: This method is called to format a date.
  
  @param value date value
  @return formatted date value