Solution to the system date format obtained by ASP in Win7 IIS7 is slashed
Updated: July 27, 2012 09:02:13 Author:
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 with /
We can solve this problem by changing the registry:
Open the registry, go to [HKEY_USERS\.DEFAULT\Control Panel\International], and then
1. Change the value of the key sDate from / to -
2. Change the value of the key sShortDate from yyyy/M/d to yyyy-M-d
3. Just restart IIS.
Open the registry, go to [HKEY_USERS\.DEFAULT\Control Panel\International], and then
1. Change the value of the key sDate from / to -
2. Change the value of the key sShortDate from yyyy/M/d to yyyy-M-d
3. Just restart IIS.
Related Articles
Componentless implementation of file upload/download
Componentless implementation of file upload/download...2006-09-09The first article of introduction to ASP basics (ASP technology introduction)
This article will focus on Active Server Pages, fully demonstrate the steps and techniques for creating dynamic business websites, and through a large number of examples, you will be proud of the "network" in continuous theory and practice...2015-10-1019 most commonly used basic tips under asp
The 19 most commonly used basic tips under Asp...2007-11-11Create MDaemon user code with ASP
Create the code of MDaemon user with ASP...2007-03-03Methods to retain two digits after the decimal point in ASP (using FormatNumber)
This article mainly introduces the method of retaining two digits after the decimal point in ASP, and uses the FormatNumber function to implement it. Friends who need it can refer to it.2014-06-06The ultimate defense of SQL injection attacks
In the previous article, we have already talked about the nature of SQL injection vulnerabilities that are caused by improper encoding by programmers. Let’s continue to talk about how to correct encoding so as not to be attacked by SQL injection.2008-12-12Componentless ASP advertising display code that supports weights
Componentless ASP advertising display code that supports weights...2007-03-03Use ASP to implement code for writing IIS logs
Use ASP to implement code for writing IIS logs...2007-11-11asp database connection rs("")
Sometimes there will be problems in the database connection where the connstr is involved, and the problem of join query call rs("")2008-07-07ASP batch update code
I made an ASP static site. Since the website is modified, all static pages need to be updated. It turned out that they were named after time as the file. Now they are all changed to ID names, but the field of the saved address in the database cannot be updated. Please give me some advice. I am very grateful.........2008-03-03