Features
Ask DevGuru
ASP Resources
Find the Bug
Knowledge Base
Links
Tips of the Week
Tutorials
Products
dgCalendar
dgCharge New!
dgChart New!
dgFileUpload
dgReport New!
dgSort
dgTree
Site
Authoring
Coming Soon
DevGuru Resume
Link to Us
Merchandise
Sponsorships
Testimonials
What's New
Technologies
ADO 2.6
ASP
CSS2
HTML
JavaScript
Jet SQL
Transact-SQL Syntax
VBScript
WML
WMLScript
WSH
XML DOM
All Functions
Date Function
CDate Function
Date Function
DateAdd Function
DateDiff Function
DatePart Function
DateSerial Function
DateValue Function
Now Function
Time Function
Day Function
Month Function
Now Function
TimeSerial Function
TimeValue Function
Weekday Function
Year Function
FUNCTION: DateSerial( )
Implemented in version 1.0
DateSerial
(Year, Month, Day)
The DateSerial function converts the arguments into the variant of subtype Date.
There are three mandatory arguments.
Year
The
Year
argument is the year as a string or integer.
Month
The
Month
argument is the month as a string or integer.
Day
The
Day
argument is the Day as a string or integer.
Code:
<% =DateSerial(1943, 6, 26) %>
Output:
6/26/43
Code:
<% =DateSerial("43", "6", "26") %>
Output:
6/26/43
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information