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 中的日期格式与控制台应用程序中的日期格式
基础教程推荐
- 将 XML 转换为通用列表 2022-01-01
- 如何激活MC67中的红灯 2022-01-01
- MS Visual Studio .NET 的替代品 2022-01-01
- 为什么Flurl.Http DownloadFileAsync/Http客户端GetAsync需要 2022-09-30
- 如何在 IDE 中获取 Xamarin Studio C# 输出? 2022-01-01
- SSE 浮点算术是否可重现? 2022-01-01
- c# Math.Sqrt 实现 2022-01-01
- 有没有办法忽略 2GB 文件上传的 maxRequestLength 限制? 2022-01-01
- 将 Office 安装到 Windows 容器 (servercore:ltsc2019) 失败,错误代码为 17002 2022-01-01
- rabbitmq 的 REST API 2022-01-01