开发者

Convert date to string for a locale in Windows

This might be a simple one but I can't seem to find an easy solution. I need to format a date as a string to be represented in a full form for a locale. Example:

May 28, 2011 (for US locale)

_strftime_l(_T("%#x")) can do a si开发者_运维技巧milar thing but it adds a weekday up front, that I don't need.


GetDateFormat and GetTimeFormat (or the Ex versions for Vista and up).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜