Determines the month value from the passed date and returns the month's name as a character string.

Syntax

JSV_cMonth(expD [, abbreviate])

Prototype

expD.cMonth([abbreviate])

Returns

The function cMonth returns a character string that contains the name of the month specified in expD.

Parameters

The cMonth function uses the following arguments.

Argument Description
expD A date object.
abbreviate Optional. Boolean value that indicates whether the returned character string is the full name (e.g., October) or as an abbreviated name (e.g., Oct). Default value is false.

Remarks

n/a

Dependencies

n/a

Example

The following lines of code

var today = new Date();
document.write( "The current month is " + JSV_cMonth(today).bold() );

produce