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).
精彩评论