VBScript » Functions » Month

Version: 1.0

Syntax:
Month(Date)

The Month function returns the number of the current month using using any valid date expression as an argument.

You can also use the Date and Now functions as the argument.

Examples

Code:
<% =Month(Date) %>
Output:
3
Language(s): VBScript
Code:
<% =Month("June 26, 1943") %>
Output:
6
Language(s): VBScript

See Also: