转自 http://blog.csdn.net/ddl007/archive/2009/07/01/4313770.aspx
CTime t(2009,7,1,16,58,50); //时间类型赋值
DWORD dwTime = t.GetTime(); //将CTime状换为DWORD类型
CTime time(dwTime);//将DWORD转换为CTime
time.GetDay();
time.GetYear();
.......................
time.Format("%Y %M %M %H %M %S",t.GetYear(), ........);
//时间类型的赋值