The framework calls this method when it must convert the date associated with an object into a string.

virtual void OnFormatFileDate(
   const CTime& tmFile,
   CString& str 

[in] tmFile

The date associated with a file.

[out] str

A string that contains the formatted file date.

When a CMFCShellListCtrl Class object displays the date associated with a file, it must convert that date to a string format. The CMFCShellListCtrl uses this method to make that conversion. By default, this method uses the current locale to format the date into a string.

Header: afxshelllistctrl.h