Date and Time Tasks

HomeOverviewDetails

Use MFC classes for time and date data, or use alternatives such as C run-time functions or Win32 API functions. For more information about alternative support for time and date operations, see Time Management in the Run-Time Library Reference and Time in the Win32 Programmer's Reference.

CTime and CTimeSpan are for use in general situations. COleDateTime and COleDateTimeSpan are for use with Automation and with the MFC database classes.

What do you want to do?

Get the Time

Calculate Elapsed Time

Format Time/Date Strings