ASPProgramIn, when the function now () is called, the display time is always like "08:12:56" and "Morning" and "Afternoon". The solution and the final solution are as follows:
This is usually because the server is set in this way. First, view the time format: double-click the time in the taskbar, in the pop-up "time and date", the words "Morning and afternoon" are displayed, so proceed to the next step;
Open the control panel, select "region and language options", select Custom in "region options", select the "time" tab, and set the time format to "H: mm: SS (24-hour time), clears the values after the following AM and PM symbols, and click OK to save the settings;
In this case, the "time and date" is opened, and the words "Morning" and "Afternoon" are no longer displayed in the time, so proceed to the next test;
After IIS is restarted, execute the ASP function now (). I am very disappointed with the result, but the word "Afternoon" is displayed. This is not the problem now, it should be that the time set by the system region is not used;
Force ASP time to use the time format in Region settings. The method is as follows: Open the Registry Editor and enter HKEY_LOCAL_MACHINE/software/Microsoft/to create oleaut items, create a DWORD Value named "varconversionlocalesetting" under this item, set data to 2, and exit the Registry Editor after the setting is complete.
After IIS is restarted, test the ASP function now () again. Now, the "Morning" and "Afternoon" are no longer displayed.