Home  |  Latest News  |  Contribute  |  F.A.Q.  |  Account  |  Scripts | About
Search ASPNut:
 
ASP Reference
Server Variables
ASP Glossary
Related Sites

Free Components

HTML Reference
Web Colors
Entities
CSS Level 1
Encode/Decode
Glossary

Our Sponsors
ASP Nuke CMS
Free Auctions
PHP 5 Script
Funktastic Blog
ULost Directory
Team Task

 

 

 

 

 

 

 

 

 

 

 

 

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

Orvado Technologies

ASP Nuke CMS
Free Open Source
Content Manager
HomeFix Boards
Home Remodeling
Message Boards

Contact Us | Contribute | About | Site Map



"I only regret that I have one life to lose for my country." - Nathan Hale

©2007 Orvado Technologies, All Rights Reserved
ASP Nut provides articles and reference documentation for Active Server Page developers.