Win7 IIS 7 ASP gets the system date format as a slash solution

  
                  

Under Win7, although we changed the time and date format in the control panel to YYYY-MM-DD, the date obtained by the ASP function NOW() or DATE() is still in the format of

You can solve this problem by changing the registry: Open the registry, go to [HKEY_USERS\\.DEFAULT\\Control Panel\\International], then 1. Change the value of the key sDate from /to 2. 2. Set the value of the key sShortDate from yyyy /M/d is changed to yyyy-Md 3. Restart IIS.

Copyright © Windows knowledge All Rights Reserved