YouTip LogoYouTip

Func Month

VBScript Month Function

--

VBScript Tutorial

VB Tutorial VB Usage VB Variables VB Procedures VB Conditionals VB Looping VB Summary VB Examples VB Functions VB Keywords

VBScript Examples

VBScript Keywords

Deep Dive

script

Scripting Language

Computer Hardware

Programming Languages

Development Tools

Software

Web Services

Computer Science

Web Design and Development

Computer

VBScript Month Function


VBScript Reference Manual Complete VBScript Reference Manual


The Month function returns a number representing the month of the year, between 1 and 12.

Syntax

 Month(date) 
Parameter Description
date Required. Any expression that represents a date.

Example

Example

document.write(Month("2010-02-16"))

The above example outputs:

 2

Try it Yourself Β»


VBScript Reference Manual Complete VBScript Reference Manual

← Func MonthnameFunc Minute β†’