$calendar.weekOfMonth()
The week of the month of the given calendar.
| Name | Type | Description | Mandatory | Default |
|---|---|---|---|---|
| calendar | Business object | The calendar whose week of the month is to be determined. It can be a system or user calendar. | yes |
Type: Number
A number representing the week of the month of the given calendar.
date(2012, 8, 15).toUserCalendar().weekOfMonth()
Output: 2