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 中的日期格式与控制台应用程序中的日期格式
基础教程推荐
- Azure Functions:CosmosDBTrigger 未在 Visual Studio 中触发 2022-01-01
- 如果有人提交恶意软件Nuget包怎么办? 2022-01-01
- 如何使用 .Net 检查 Active Directory 服务器是否已启动并正在运行? 2022-01-01
- 我应该在后面的代码中直接使用 Linq To SQL 还是使 2022-01-01
- 当值可以是对象或空数组时反序列化 JSON 2022-01-01
- Moq It.Is<>不匹配 2022-01-01
- C# 从 List<List<int>> 中删除重 2022-01-01
- WPF 模态进度窗口 2022-01-01
- .NET SerialPort DataReceived 事件未触发 2022-01-01
- 禁止输入少量字符,例如'<'、'&a 2022-01-01
