date format in asp.net versus in console application(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 中的日期格式与控制台应用程序中的日期格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:asp.net 中的日期格式与控制台应用程序中的日期格式
基础教程推荐
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
