日期格式在asp.net中与在控制台应用程序 [英] date format in asp.net versus in console application

查看:192
本文介绍了日期格式在asp.net中与在控制台应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我部署.NET应用程序到另一台计算机。

I'm deploying a .NET applications to another machine.

在控制台应用程序,值

DateTime.Today.ToLongDateString();

10 December 2009

而在Web应用程序中值为

while in web application the value is

23 ذو الحجة 1430 < equivalent in higri calendar

如何在Web应用程序从文化,为什么比控制台应用程序是不同的?

How does the web application get the culture from, and why is it different than the console application?

推荐答案

我得到了答案!它可能是ASPNET或IIS的用户的登记记录中的一个。通过使用注册表编辑器,我在其中一个用户发现国际=阿拉伯语

I got the answer! it was one of the registry records of the users of probably ASPNET or IIS. by using regedit, i found in one of the users international = arabic

感谢: <一href="http://stackoverflow.com/questions/417497/change-default-locale-in-iis-6-0/1007462#1007462">http://stackoverflow.com/questions/417497/change-default-locale-in-iis-6-0/1007462#1007462

这篇关于日期格式在asp.net中与在控制台应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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