如何在IIS 7中设置日期和时间格式 [英] How to set Date and time format in IIS 7

查看:108
本文介绍了如何在IIS 7中设置日期和时间格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的本​​地机器有日期格式:(d / M / yyyy h:mm tt)==>(23/6/2011 4:30 PM)



<当我在IIS服务器上发布我的网站时,它将日期格式转换为(M / d / yyyy H:mm)



我更改了服务器的日期和时间格式但它没有受到影响。
我将网站的文化改为英文美国时间格式已解决,但日期没有。 (M / d / yyyy hh:mm tt)
我将网站的文化改为英国英国日期格式,但时间没有。 (d / MM / yyyy H:mm)



是什么解决方案使其格式像我的本地格式??? !!!

解决方案

   - 打开IIS 7 
- 选择您的网站
- 打开.NET GLOBALIZATION
- 从文化选项卡中,选择所需的文化和UI文化。
- iisreset


I have date format in my local machine : (d/M/yyyy h:mm tt) ==> (23/6/2011 4:30 PM)

when i publish my website on IIS server it converts date format to (M/d/yyyy H:mm)

i changed the date and time formats of the server but it's not affected . i changed the culture of the website to English US time format solved but date not. (M/d/yyyy hh:mm tt) i changed the culture of the website to English UK date format solved but time not. (d/MM/yyyy H:mm)

what is the solution to make it's format like my local format ???!!!

解决方案

- Open IIS 7
- Select your website
- Open .NET GLOBALIZATION
- From Culture tab, select required Culture and UI Culture.
- Do iisreset

这篇关于如何在IIS 7中设置日期和时间格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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