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

查看:17
本文介绍了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 用户的注册表记录之一.通过使用 regedit,我在其中一位用户中找到了 international = arabic

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

感谢:更改 IIS 6.0 中的默认区域设置

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

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