日期时间日/月 (02/12)
这似乎是我应该能够在谷歌上找到的东西,但我没有太多看。
我想将日期格式设置为日/月。我唯一发现的是 {0:M},它显示了我想要的信息,但是月份写得像 12 月而不是“12”。由于空间限制,我需要尽可能使用 02/12。
感谢您的帮助!
This seems like something I should be able to find on Google but I'm not having much look.
I'd like to format a date as day/month. Only thing I've found it {0:M} which displays the information I want however the month written out like December rather than "12". I need to use 02/12 if possible due to space restrictions.
Thanks for any help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以尝试以下格式:
You could try the following format:
您是否尝试过:
Have you simply tried:
您确定它忽略您本地计算机的区域设置吗?
如果你这样做会发生什么:
Are you sure its ignoring your local computer regional settings ?
What happens if you do: