Recommended: How to display server time in web page (asp) Display time on the web page. If the time on the user's native machine is taken, the time of the user is often inaccurate, so there is a problem with the display. The server time generally does not have too much error, so it is best to display the server time asp+js as an example. The following analyzes the code structure, first obtaining the server time: %d=Date() t=Time() % var t0=new Date().getTim
The solution to call Now() in the ASP program to display the morning and afternoon:
1. This display is usually because the server is set like this. First check the time format: double-click the time in the taskbar, and the words like morning and afternoon are displayed in the pop-up time and date, so let’s go to the next step of setting;
2. Open the control panel, select the region and language options, select customization in the region options, select the time label, set the time format to H:mm:ss, that is, the 24-hour time, clear the following AM symbols and PM symbols, and click OK to save the settings;
3. Open the time and date again, and the words morning and afternoon are no longer displayed in the time. Go to the next step of inspection;
4. After restarting IIS, I executed the ASP function Now(), which disappointed me. I still showed the word "则" in the afternoon. That's not the problem now, it should be that there is no time to use the system locale settings;
5. Force the ASP time usage to use the time format in the locale settings. The method is as follows: Open the registry editor, enter HKEY_LOCAL_MACHINESOFTWAREMicrosoft, create the OLEAUT entry, and create the DWORD value named VarConversionLocaleSetting under this entry. Set the data to 2. After the setting is completed, exit the registry editor;
6. After restarting IIS, test the ASP function Now() again. Now it has been successful and no longer displayed the words "damn morning and afternoon".
Share: Talking about BOF or EOF one is true, or the current record has been deleted When debugging the "Student Management System", if you want to modify the student status information, if the data in the database has been completely deleted at this time, an error will appear: "BoF or Eof is true, or the current record has been deleted." What we need to do at this time is to use the moveNext and other methods of the Recordset object to determine whether the data in the database is used to determine whether the data in the database is used before using the Recordset object's moveNext and other methods.