Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这可能是一个简单的,但我似乎无法找到一个简单的解决方案。我需要将日期格式化为字符串,以便以完整的语言环境形式表示。例子:
2011 年 5 月 28 日(美国地区)
_strftime_l(_T("%#x")) 可以做类似的事情,但它会预先增加一个工作日,我不需要。
GetDateFormat 和 GetTimeFormat(或 Vista 及更高版本的 Ex 版本)。