说格式是mm / dd / yyyy的最好方法是什么 - 但是以本地格式? [英] What is the best way to say format is mm/dd/yyyy - but in the local format?

查看:216
本文介绍了说格式是mm / dd / yyyy的最好方法是什么 - 但是以本地格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Excel似乎没有这个(除非我错过了),但是我们正在获得需求。而且由于我们尝试将Excel与单元格格式化语法相匹配,我想以一种有意义的方式添加它。

Excel appears to not have this (unless I missed it), but we're getting demand for it. And since we try to match Excel for the cell formatting syntax, I'd like to add this in in a way that makes sense.

所以有关如何指定的建议你想要在本地布局中格式化的短/中/长日期/时间/日期时间?换句话说,我可以规定,在美国我得到mm / dd / yy,在德国yyyy mm dd。

So any suggestions on how to specify that you want a short/medium/long date/time/datetime formatted in the local layout? In other words I can spec so that in the US I get mm/dd/yy and in Germany yyyy mm dd.

谢谢 - dave

thanks - dave

推荐答案

实际上,您可以使用单元格格式菜单中的星号选择要显示的单元格取决于当前的系统区域设置。

Actually, you can use the asterisk in the Cell Format menu to choose you cell to display depending on the current system regional settings.

例如: * 06/30/2011 将根据您的系统区域设置:

For instance : *06/30/2011 would display differently depending on your system regional settings :


  • 06/30/2011为美国或英国(例如)

  • 30/06/2011为法国(例如)

请参阅 here 获取更多信息。

这篇关于说格式是mm / dd / yyyy的最好方法是什么 - 但是以本地格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆