VBScript Month Function
Definition and Usage
The Month function can return a number representing the month of the year, ranging from 1 to 12.
Syntax
Month(date)
Parameters | Description |
---|---|
date | Required. Any expression that can represent a date. |
Instance
Example 1
D = #1/15/2002# document.write(Month(D))
Output:
1