The DATE type is implemented using an 8-byte floating-point number. Days are represented by whole number increments starting with 30 December 1899, midnight as time zero. Hour values are expressed as the absolute value of the fractional part of the number.
已经试出来了,
COleDateTimespan timespan(a);
COleDateTime tm;
tm = timespan;
int year = tm.GetYear();
int month = tm.GetMonth;
int Day = tm.GetDay();
int Hour = tm.GetHour();
int Minute = tm.GetMinute();
int Sencond = tm.GetSecond();
DATE a;
COleDateTime tm;
tm = a;
int year = tm.GetYear();
int month = tm.GetMonth;
int Day = tm.GetDay();
int Hour = tm.GetHour();
int Minute = tm.GetMinute();
int Sencond = tm.GetSecond();