VBScript Day Function
Definition and Usage
The Day function can return a number between 1 and 31 representing the day of the month.
Syntax
Day(date)
Parameter | Description |
---|---|
date | Required. An expression representing a date. |
Instance
Example 1
document.write(Date & "<br />") document.write(Day(Date))
Output:
1/14/2002 14