=============================================%H Hours in the current day %M Minutes in the current hour %S Seconds in the current minute=============================================COleDateTime t = COleDateTime::GetCurrentTime(); CString str = t.Format("%Y-%m-%d %H:%M:%S");
请问Data Time picker控件能显示小时和分钟的信息吗? 我现在把它和Coledatatime变量绑定,请问还应该做什么?
Data Time picker可以设置时,分,秒,把format的参数改为time就可以了,但只显示时、分、秒
=============================================%H Hours in the current day
%M Minutes in the current hour
%S Seconds in the current minute=============================================COleDateTime t = COleDateTime::GetCurrentTime();
CString str = t.Format("%Y-%m-%d %H:%M:%S");
我现在把它和Coledatatime变量绑定,请问还应该做什么?
http://msdn2.microsoft.com/en-us/library/yt32ce9h(VS.80).aspx
http://msdn2.microsoft.com/en-us/library/kt1kwxwa(VS.80).aspx