///////////
//日期
///////////
char temp[20];
COleDateTime date;
CString strYear,strMouth,strDay;
date = COleDateTime::GetCurrentTime();
strYear = itoa(date.GetYear(),temp,10);
strMouth = itoa(date.GetMonth(),temp,10);
strDay = itoa(date.GetDay(),temp,10);

if(strMouth.GetLength()==1)
{
strMouth="0"+strMouth;
}
if(strDay.GetLength()==1)
{
strDay="0"+strDay;
}
m_strDate=strYear+"-"+strMouth+"-"+strDay; VARIANT year,mouth,day;
year.vt=VT_I2;
year.iVal=date.GetYear();
mouth.vt=VT_I2;
mouth.iVal=date.GetMonth();
day.vt=VT_I2;
day.iVal=date.GetDay();
m_Date.SetYear(year);
m_Date.SetMonth(mouth);
m_Date.SetDay(day);