IIS time format setting problem (ASP.net date format is incorrect)

Source: Internet
Author: User

IIS time format setting problem (ASP.net date format is incorrect) IIS time format adjustment: Since the XP of tomato garden was installed, a lot of problems have been found. First, several local sites cannot run normally, and the error message is a time format error. Can I do it now? It seems that there is an extra "morning/afternoon" string. The relevant information on the network is as follows: Modify the Registry HKEY_USERS /. default/Control Panel/InternationalHKEY_CURRENT_USER/Control Panel/InternationaliTime = 1 the corresponding key value is HKEY_LOCAL_MACHINE "SOFTWARE" Microsoft "OLEAUT (OLEAUT may not exist, create one by yourself) create a DWORD Value VarConversionLocaleSetting = 2 Note: the DWORD value is called "dubyte value" in the Chinese Registry Editor and restarts the computer after the operation is completed... OK. Others: Why is the DWORD Value 2? In fact, it has 0, 1, 2 values, 0-default value, which is the current value. 1-The default value is HKEY_USERS ". default" Control Panel ", which is the default value in the International Registry Configuration unit. If your system date format is not standard, it is equivalent to the current value. 2-This format is forced to use the system's default region settings. I tried it. None of the above methods works. I don't know if I don't understand the essence. I think that I used to use master optimization and added the words "good learning" before the date. Can this problem be solved by Master optimization? In the personal settings, delete "morning/afternoon" and restart. Or not. But after all, I got it done, or I wouldn't have said a bunch of nonsense. "Control Panel"-"date, time, language, and Region Settings"-"Change number, date, and time format"-"region options"-"Custom"-time format: HH: mm: ss (what is the specific meaning, above) Date Format: yyyy-M-d you can try to change to another format to see the effect. The following Code is used to check whether the format is standardized or not. IIS time format validation Script: <! ---- Test Time Begin ----> <% tnow = now (): oknow = cstr (tnow) if oknow <> year (tnow) & "-" & month (tnow) & "-" & day (tnow) & "& hour (tnow) &": "& right (FormatNumber (minute (tnow)/100,2), 2 )&": "& right (FormatNumber (second (tnow)/100,2), 2) then oknow = oknow &" (date format not standard) "%> server time: <% = oknow %> <! ---- Test Time End ----> ------------------------------------------ encountered this problem again. After testing, it was found that. The preceding settings in "date, time, language, and Region Settings" are invalid. As mentioned above: the corresponding key value is HKEY_LOCAL_MACHINE "SOFTWARE" Microsoft "OLEAUT (OLEAUT may not exist, so create one by yourself) create a DWORD Value VarConversionLocaleSetting = 2 and restart IIS. Restart IIS: Start-run net stop iisadmin iisreset

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.