Share via


Change in COleDateTime

Two-digit dates are no longer valid in . 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:

COleDateTime.mytime(1996,1,1,0,0,0);