Functions (VBScript)


Visual Basic Scripting Edition
Day Function

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

Day(date)
Remarks

The date argument is 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.
Requirements

Version 1

See Also

Reference

Tags :


Page view tracker