更改日期格式为en-US,而文化是FR-CA [英] Changing Date format to en-us while culture is fr-ca

查看:917
本文介绍了更改日期格式为en-US,而文化是FR-CA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的法语本地化网站。不过,我不应该日期格式更改为法语。它必须保持按即使区域性设置为EN-US格式FR-CA,即,当内容其余都在法国,日期格式应该还是在英语(EN-US)。

I'm working on localizing a website in French. However I am not supposed to change the date format to French. It must remain as per en-us format even if the culture is set to fr-ca i.e, when rest of the contents are in French, the date format should still be in English(en-us).

推荐答案

令人惊讶的我有一个非常简单的答案。当设置Culture和UICulture,我需要做的是文化属性始终设置为EN-US。这将导致示出英语总是日期格式

Surprisingly I got a very simple answer. While setting Culture and UICulture, all I need to do is to set the Culture Property to en-us always. This will result in showing the date format in English always.

这篇关于更改日期格式为en-US,而文化是FR-CA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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