weekOfMonth

Syntax

	$calendar.weekOfMonth()

Description

The week of the month of the given calendar.

Parameters

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

Return value

Type: Number

A number representing the week of the month of the given calendar.

Examples

	date(2012, 8, 15).toUserCalendar().weekOfMonth()

Output: 2