Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

如何将日期时间用不同格式显示

From Wiki
Jump to: navigation, search
Article Metadata

文章
翻译:
hoolee
最后由 hamishwillee 在 22 Dec 2011 编辑

下列代码片段将日期显示为如下格式: 10-NOV-2006

	_LIT(KTimeFormat,"%*D%*N%Y%1-%2-%3");
TBuf<50> TimeDesc;
TTime time;
time.HomeTime();
TRAPD( err, time.FormatL( TimeDesc, KTimeFormat) );
CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
informationNote->ExecuteLD(TimeDesc);
This page was last modified on 22 December 2011, at 05:02.
47 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×