Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
698 views
in Technique[技术] by (71.8m points)

iis 7 - Datetime format issue in IIS 7 server

I have hosted one of my site on IIS 7, WS2008. Later i have realize there is some datetime format issue, like me expecting things in dd/MM/yyyy format but it was in MM/dd/yyyy format and because of this it used to give me datetime conversion error.

So i have changed the datetime format by following step:

Control Panel -> Regional and Language Options -> Advanced

and changed registry entry

regedit >> HKEY_USERS>>DEFAULT>>Control Panel>>International

and here we have changed "sLongDate" and "sShortDate" key in dd MM yyyy format

and restarted the server.

Now, the issue is if i create new website i'll found everything is working fine including my datetime format as well

But my actual site which i have created before making all these datetime setting changes is having no change at all, still i m facing same datetime issue.

So i have deleted that site and hosted same site again with same IP address and at same port, but still same issue.

So, is it like there is some configuration of datetime for specific port.

I can not change my port.

Please suggest me proper solution.

Thanks in Advance...

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

After lot's of hunt i have found the solution of my problem:

1) Change the datetime format of your server from:

Control Panel -> Regional and Language Options -> Advanced

2) Open IIS and follow below steps: (For IIS7)

- Click on you Website
- Select .NET GLOBALIZATION option
- From Culture tab, select required Culture and UI Culture.
- Finally iisreset.
- Dones....

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...