Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

VBScript Day Function

Returns a whole number between 1 and 31, inclusive, representing the day of the month.

Syntax: VBScript Day Function

Day(date)

Arguments: VBScript Day Function

date

Any expression that can represent a date. If date contains Null, Null is returned.

The following example uses the Day function to obtain the day of the month from a specified date:

Dim MyDay

MyDay = Day("October 19, 1962")   ' MyDay contains 19.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.