Recommended: How to make ASP search keyword highlight It is very convenient to use ASP to implement the functions of search engines, but how to implement intelligent searches similar to 3721? For example, when "Chinese People" is entered in the search condition box, it will be automatically extracted from it.
For the date stored in the date and time type field of the access database, the effect of reading the display directly from the database is time-sensitive, such as 2009-06-1318:00. What should I do if I just want to display the date?Vbscript has a function FormatDateTime(). The description is as follows:
Returns the expression, which has been formatted as a date or time.
FormatDateTime(Date[,NamedFormat])
parameter
Date
Required option. The date expression to be formatted.
NamedFormat
Optional. Values indicating the date/time format used, if omitted, use vbGeneralDate.
set up
The NamedFormat parameter can have the following values:
| constant | value | describe |
| vbGeneralDate | 0 | Shows the date and/or time. If there is a date section, the section is displayed in a short date format. If there is a time part, the part is displayed in a long time format. If all exist, all sections are displayed. |
| vbLongDate | 1 | Display dates using the long date format specified in the computer locale. |
| vbShortDate | 2 | Display dates using the short date format specified in the computer locale. |
| vbLongTime | 3 | Display time using the time format specified in the computer locale. |
| vbShortTime | 4 | Display time in 24-hour format (hh:mm). |
Share: A function that analyzes ASP to check whether the website link is normal % FunctionurlChk(sUrl) onerrorresumenext SetxmlHttp=Server.CreateObject(Microsoft.XMLHTTP) xmlHttp.openGET,sUrl,false xmlHttp.send ifxmlHttp.Status200then urlChk=false else urlChk=true endif EndFunction sUrl=http://www.code-123.com ifu