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