DIAdem Help

Method: DateSerial for VBS

  • Updated2024-09-12
  • 1 minute(s) read

Method: DateSerial for VBS

Specifies the date from the day, month, and year values.

vDateSerial = Object.DateSerial(Year, Month, Day)
ObjectVBS
Object with this method. You do not need to specify this object.
YearVariant
Specifies a year. The valid range is between 0 and 9999. If you enter values between 0 and 99, the DateSerial method interprets this as the years 1900 to 1999.
MonthVariant
Specifies a month.
DayVariant
Specifies a day in the month.
vDateSerialVariant
Receives a date.

The following example displays a date:

Dim MyDate
MyDate = DateSerial(2001, 12, 24)
Call MsgBox(MyDate)

See Also

Objects Overview

Related Topics

DateAdd | DateDiff | DatePart | DateSerial | DateValue | Date | Day | Hour | Minute | MonthName | Month | Now | Second | TimeSerial | TimeValue | Time | Timer | Weekday | WeekdayName | Year