CTime tmpTime = CTime::GetCurrentTime();
//假设得到Tuesday, 08/20/02
我想要把它转换成“星期二,2002年8月20日”
并把它存入buf数组中,
谢谢!
//假设得到Tuesday, 08/20/02
我想要把它转换成“星期二,2002年8月20日”
并把它存入buf数组中,
谢谢!
解决方案 »
- ocx在IE中全屏的问题,坐等结贴.
- getpeername 总是返回 10014错误
- ASP 如何传递字符串给 COM, 以及如何得到COM的返回值的字符串?
- 关于ActiveX控件的问题,请高手们帮忙
- 一个奇怪的问题(release版本问题)
- spin和edit关联数据显示超过1000就加,的问题.
- 下面这段sql语句怎么这么多分号?怎么分?
- 一道面试题
- 将数据库中的内容在树形控件中显示出来!与大家探讨,赠送50大分!
- 如何使用BSTR类型数据。在asp中怎么传值给BSTR类型,和返回BSTR类型
- ISDN与PSTN的MODEM实现数据互通是否可能??需要什么设备?速率可否达到接近56 kbps??
- 那里有win98 的windows service pack?(在线)
char timebuf[100];
CTime tmpTime1 = CTime::GetCurrentTime();
tmpTime1.GetTime();
strcat( timebuf ,(LPSTR)(LPCTSTR)tmpTime1.Format("%H:%M:%S") );
strcat( timebuf , " "); tmpTime1.GetYear();
strcat( timebuf ,(LPSTR)(LPCTSTR)tmpTime1.Format("%Y") );
strcat( timebuf , "年"); tmpTime1.GetMonth();
strcat( timebuf ,(LPSTR)(LPCTSTR)tmpTime1.Format("%B") );
strcat( timebuf , "月"); tmpTime1.GetDay();
strcat( timebuf , (LPSTR)(LPCTSTR)*/tmpTime1.Format("%d") );
strcat( timebuf , "日 ");