VBScript Month Function

Definition and Usage

The Month function can return the numeric representation of the month of the year, ranging from 1 to 12.

Syntax

Month(date)
Parameter Description
date Mandatory. Any expression that can represent a date.

Instance

Example 1

D = #1/15/2002#
document.write(Month(D))

Output:

1