Determines the month value from the passed date and returns the month's name as a character string.
JSV_cMonth(expD [, abbreviate])
expD.cMonth([abbreviate])
The function cMonth returns a character string that contains the name of the month specified in expD.
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. |
n/a
n/a
The following lines of code
var today = new Date();
document.write( "The current month is " + JSV_cMonth(today).bold() );
produce
Copyright © 1998-2000 Roaring Fork Software. All rights reserved.