Recommended: ASP method to obtain URL address of the address bar If you want to get the address like this: http://192.168.0.5/super/super_article.asp?id=4, then we just need to get: 192.168.0.5--%=Request.ServerVariables(HTTP_HOST)%br /super/super_article.asp----%=Request.ServerVariables(URL)%br id=4---%=Request.ServerVariables(QUERY
Usage of DateAdd function in ASP
2006/09/22 12:29
Note that the writing methods in vbs and sql are slightly different. The following post is helpful for vbs.
Searchable SQL-based help documents
A string expression that indicates the time interval to be added. For values, see the Settings section.
Returns the date when the specified time interval has been added.
DateAdd(interval, number, date)
parameter
interval
Required option.
number
Required option. Numeric expression, indicating the number of time intervals to be added. Numeric expressions can be positive (get future dates) or negative (get past dates).
date
Required option. Variant or text that represents the date to add interval.
set up
The interval parameter can have the following values:
table
illustrate
The DateAdd function can be used to add or subtract the specified time interval from the date. For example, DateAdd can be used to calculate the date 30 days from the same day or to calculate the time 45 minutes from the present day. To add a time interval in days to date, you can use the number of days (y), days (d) of one year, or the number of days (w) of a week.
The DateAdd function does not return an invalid date. The following example adds January 31, 2019:
NewDate = DateAdd(m, 1, 31-Jan-95) In this example, DateAdd returns February 28, 95, instead of February 31, 95. If date is January 31, 2019, it returns February 29, 2019, because 1996 is a leap year.
An error occurs if the calculated date is before 100 AD.
If number is not a Long value, rounded to the closest integer before calculation.
Share: Introduction to the CreateTextFile method of FSO component object.CreateTextFile(filename[, overwrite[, unicode]]) Parameters: object Required. Should be the name of the FileSystemObject or Folder object. filename Required option. Specifies the string expression of the file to be created. overwrite Optional. Boolean value, indicating whether existing files can be overwritten. If the file can be overwritten,