dayOfWeekInMonth
Syntax
$calendar.dayOfWeekInMonth()
Description
The day of the week in the month in the given calendar. This indicates which day of the week it is in the given month, for example, the last Thursday of the month.
Parameters
Name | Type | Description | Mandatory | Default |
---|---|---|---|---|
calendar | Business object | The calendar whose day of the week in the month 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 in the month of the given calendar.
Examples
date(2021, 9, 12).toSystemCalendar().dayOfWeekInMonth()
Output: 2
It is the second Tuesday of the month. The first one was on 05.10.2021.