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

@param value date value
@return formatted date value