DateSerial
The DateSerial function will create a date value from the
parameters. The parameters contain the day (of the month), the
month and the year.
It is possible for a runtime exception to be thrown when building
a date value using the DateSerial function. Because of this,
you may want to wrap your function call with an error handler as
shown in the example below:
Dim nDay, nMonth, nYear, dBirthday
nDay = 1 nMonth = 11 nYear = 2000
dBirthday = DateSerial(nYear, nMonth, nDay) Response.Write "Birthday is: " & dBirthday
|
 |

|