Date and Time

OverviewHow Do I

MFC supports several different ways of working with dates and times. These include:

  • General-purpose time classes. The and classes encapsulate most of the functionality associated with the ANSI-standard time library, which is declared in TIME.H.

  • Support for system clock. With MFC version 3.0, support was added to CTime for the Win32 SYSTEMTIME and FILETIME data types.

  • Support for the Automation DATE data type. DATE supports date, time, and date/time values. The and classes encapsulate this functionality. They work with the class using Automation support.

For more information, see one or more of the following articles: