COleDateTime

This class encapsulates the DATE data type used in Automation. COleDateTime value represents an absolute date and time value as a floating point number. The COleDateTime class handles dates from 1 January 1900 to 31 December 9999.

This type is also used to represent date-only or time-only values. By convention, the date 0 (31 December 1899) is used for time-only values. Similarly, the time 0:00 (midnight) is used for date-only values.

At a Glance

Header file: Afxdisp.h
Platforms: H/PC 2.0, H/PC Pro
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Remarks

MFC for Windows CE only supports one of the three forms of the Format method of the COleDateTime class. In addition, MFC for Windows CE does not support the form of the constructor that initializes a COleDateTime object with a DOS time and date.

See Also

COleVariant, Automation Types