开发者

Convert date to string for a locale in Windows

开发者 https://www.devze.com 2023-03-08 19:52 出处:网络
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:

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

精彩评论

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