简体   繁体   中英

IIS 7 Classic Asp application Regional and Locale Cached?

I have one Classic Asp application running in IIS 7. As I wanted to have UK regional settings, I have made changes in:

  1. Control Pane's Regional settings
  2. Manual changes to registry for HKEY_CURRENT_USER and all users under HKEY_USERS
  3. IIS 7, Features, .Net Globalization settings

But I am still not getting the date time format I have set up which is "dd/MM/yyyy". This is obvious when I call CStr or FormatDateTime function in my application.

I have ever heard of IIS's locale caching. Does it have to do anything with my problem?

Have you got localization set in your ASP page? It could be that your browser is using that to determine what date format should be shown.

We tend to get dates in the database in the normal format and then convert using FormatDateTime to get around it. Hope that helps.

Internet Explorer的语言设置可能设置为英语(美国)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM