Home
Search
Tell a Friend
ABS() Array() ASC() CHR() CInt() CStr() Date() DateAdd() DateDiff() DatePart() DateSerial() DateValue() Day() Fix() FormatCurrency() FormatDateTime() FormatNumber() FormatPercent() Hour() InStr() InStrRev() Int() IsArray() IsDate() IsEmpty() IsNull() IsNumeric() IsObject() Join() LBound() LCase() Left() Len() LTrim() Mid() Minute() Month() MonthName() Now() Replace() RGB() Right() Rnd() Round() RTrim() Second() Space() Split() Sqr() strComp() String() StrReverse() Time() TimeSerial() TimeValue() TypeName() UBound() UCase() VarType() WeekDay() WeekDayName() Year()
|
DatePart() Purpose:Returns an integer that contains a specific part of a given date/time DataType:Integer Syntax:DatePart(timeinterval, date[,firstdayofweek[, firstweekofyear]]) Arguments:"timeinterval" is the time interval to use;
"date" is any valid date/time expression;
"firstdayofweek" and "firstweekofyear" are optional values to specify the first day of the week and first week of year. Sample: response.write "Current Month: " & DatePart("m", Now) Result: Current Month: 9 Comments:yyyy - Year, m - Month, d - Day, ww - week, n - Minute, q - Quarter, y - Day of Year, w - Weekday, h - Hour, s - Second Date Added: 1/9/2001
|