Determines the day value from the passed date and returns the name of the day as a character string.

Syntax

JSV_cDOW(expD [, abbreviate])

Prototype

expD.cDOW([abbreviate])

Returns

The function cDOW returns a character string that contains the name of the day specified in expD.

Parameters

The cDOW 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., Saturday) or as an abbreviated name (e.g., Sat). Default value is false.

Remarks

n/a

Dependencies

n/a

Example

The following lines of code

var today = new Date();
document.write( "Today is " + JSV_cDOW(today).bold() );

produce