This documentation is archived and is not being maintained.

Change in COleDateTime

Visual Studio .NET 2003

Two-digit dates are no longer valid in COleDateTime. You must specify a date of 100 or greater.

If you create a COleDateTime object with a date less than 100, the date will be accepted, but subsequent calls to GetYear, GetMonth, GetDay, GetHour, GetMinute, and GetSecond will fail and return -1.

Previously, you could use two-digit dates, but dates must be 100 or greater in Visual C++ version 4.2 or later.

To avoid problems, specify a four-digit date. For example:


See Also

Changes from MFC Versions 4.x