DateTime控件不反映网站的区域设置 [英] DateTime Control Not Reflecting Regional Settings of Site
问题描述
当我将DateTime字段添加到表单中并单击新建/编辑"时,日期以美国格式(dd/mm/yyyy)显示.
我希望在该控件中使用英国英语的日期格式.所以我去了:
网站设置>区域设置>本地>选择[英语(英国)],但DateTime控件仍将其显示为美国.
如果我设置dateTimeControl.LocaleId =< myOwnLocale> ;;在代码中,它反映了更改,但是Web UI中的更改不起作用.
这会导致技术人员感到困惑,因为无论您身在哪个国家/地区,2008年5月8日都不是2008年8月5日. 1 <1 <2 <2 <1 <2 <1类别<1服务器本身设置为美国英语?
Hi,
When I add a DateTime field to a form and click New/Edit the date is displayed in American format (dd/mm/yyyy).
I'd like English United Kingdom's date format to be used in that control. So I go:
Site Settings > Regional Settings > Local > Select [English (United Kingdom)]
But the DateTime control still shows it as American.
If I set the dateTimeControl.LocaleId = <myOwnLocale>; in code it reflects the changes but changes in the Web UI do not work.
This is causing a bit of confusion down at the technical desk as 5/8/2008 is not the 8/5/2008 no matter what country you are in.
Any ideas?
Is the server itself set to US English ?
这篇关于DateTime控件不反映网站的区域设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文