IIS7 date display format solution

  

Today when using IIS7 found a problem with the time format, when I use the now () time function in ASP, the date is separated by “ /& rdquo; Instead of being separated by “-”, I made a mistake when I was running the program. Later, after research, I finally found a solution. The operating system I am using here is Winodws Server 2008 R2. The result of using the now() time function in ASP is as follows: 2011/7/24 13:45:51 and the result I want is 2011-7-24 13: 45:51, I don't know why the time format in IIS7 should be distinguished by /, if there is a master knows to leave a message, but in the end I solved this problem by modifying the registry method, as follows: 1, start → run → Enter regedit, open the registry editor, find HKEY_USERS\\.DEFAULT\\Control Panel\\International, find the sDate item in the right window, change its value to -
; then find the sShortDate item, its value to yyyy-Md
, theme related as follows:

3, restart IIS, start & rarr; run & rarr; input iisreset

4 , execute the program again, this time is displayed: 2011-7-24 13:47:21

Copyright © Windows knowledge All Rights Reserved