dayOfWeek
Syntax
$calendar.dayOfWeek()
Description
The day of the week of the given calendar, where 1 = Sunday, 2 = Monday, etc.
Parameters
Name | Type | Description | Mandatory | Default |
---|---|---|---|---|
calendar | Business object | The calendar whose day of the week is to be determined. It can be a system or user calendar. | yes |
Return value
Type: Number
A number representing the day of the week of the given calendar.
Examples
date(2012, 8, 15).toUserCalendar().dayOfWeek()
Output: 6