CALC.weekday(date, [number])

Return an integer representing the day of the week. A second optional parameter determines the value at which the indexing starts. A value of 1 (default) represents 1 (Sunday) through 7 (Saturday). A value of 2 represents 1 (Monday) through 7 (Sunday) and a value of 3 represents 0 (Monday) through 6 (Sunday).

Example

CALC.weekday(new Date(2006,0,18),2);

// returns 3 (wednesday)

<< CALC.today() © 1996-2013 InetSoft Technology Corporation (v11.4) CALC.weekdayname(date) >>