Recommended: A brief analysis of a good page turn effect code Note: The file name should be index.asp. The display effect is as follows: 100 items in total. The current page 8/11 is the top page of the previous page [6] [7] [8] [9] [10] Next page Next page turn at the end of the page!--#includefile=conn.asp-- %PageShowSize=5'How many pages are displayed per page MyPageSize=10'How many articles are displayed per page IfNotIsNumeric(R
describe
Returns the time interval between two dates.
grammar
DateDiff(interval, date1, date2 [,firstdayofweek][, firstweekofyear]])
The syntax of the DateDiff function has the following parameters:
Parameter description
interval required. String expression represents the time interval used to calculate date1 and date2. For values, see the Settings section.
date1, date2 Required options. Date expression. Two dates used for calculation.
firstdayofweek Optional. Specifies the constant for the first day of the week. If not specified, the default is Sunday. For values, see the Settings section.
firstweekofyear Optional. Specify the constant for the first week of the year. If not specified, the default is the week of January 1. For values, see the Settings section.
set up
The interval parameter can have the following values:
Setting Description
yyyy year
q Quarterly
n months
y Number of days in one year
d Day
w Number of days of a week
ww
h hours
m minutes
s seconds
The firstdayofweek parameter can have the following values:
Constant value description
vbUseSystem 0 uses the Regional Language Support (NLS) API settings.
vbSunday 1 Sunday (default)
vbMonday 2 Monday
vbTuesday 3 Tuesday
vbWednesday 4 Wednesday
vbThursday 5 Thursday
vbFriday 6 Friday
vbSaturday 7 Saturday
The firstweekofyear parameter can have the following values:
Constant value description
vbUseSystem 0 uses the Regional Language Support (NLS) API settings.
vbFirstJan1 1 starts from the week of January 1 (default).
vbFirstFourDays 2 begins with the first week of at least four days in the new year.
vbFirstFullWeek 3 starts with the first full week of the new year.
Share: Interpreting a method code for a graphical input date Result: !doctypehtmlpublic-//W3C//DTDHTML4.0 html head titleNewDocument/title metaname=Generatorcontent=EditPlus metaname=Authorcontent= metaname=Keywordscontent= metaname=Descriptioncontent= /head body !--
2 pages in total Previous page 12 Next page