Upgrade from IIS6.0 to IIS7.0 date format adjustment method

  • 2020-05-07 20:40:57
  • OfStack

When the system is upgraded from IIS6.0 platform to IIS7 (.netframework2.0 to 4.0), the operating system WINSERVER2008 may encounter the problem that the date format originally displayed in the system is converted

I came across the date format of the original system (yyyy-M-d) and the result was that the platform was upgraded to (yyyy/M/d).
The following is a solution obtained from the Internet and reproduced here for memory:
----------------
Win2008 IIS7 date format change method .
When the server was upgraded from 32-bit to 64-bit WIN2008, the result was a date format problem.
In the control panel, find the format Settings in the area and language options, and change the short date to yyyy-M-D. Restart IIS and the result is the same.
In GOOGLE turned 1 circle to get the result is to change the registry, the following is reproduced online search modification method:
Run registry editor (regedit)
Go to HKEY_USERS/.DEFAULT /Control Panel/International
Change the right sDate value to -
Change the right sShortDate value to yyyy-M-d
Finally restart IIS and you're done!
Why do I have to change the registry after I have successfully modified it in the control panel? If you look closely at the section "region and language options" that was originally modified in the control panel version, it is written in the registry HKEY_CURRENT_USER/Control Panel/International
----------------
modifies registry :
/HKEY_USERS/.DEFAULT/Control Panel/International
Change the value of sDate on the right to - (changeable)
Change the sShortDate value on the right to yyyy-M-d (must be changed)
Finally restart IIS.

:
In the control panel, find the format Settings in the area and language options, and change the short date to yyyy-M-D.

Related articles: