calendarday(

calendarday(DATE

, BOXNUMBER

)
The** calendarday( **function helps in creating monthly calendars.

**Parameters**

This function has two parameters:

** date** – is any date in the month being displayed.

** boxnumber** – is the box within the monthly calendar being displayed. The boxes are numbered from 1 to 42, starting with the upper left hand corner. The table below shows the position of all 42 monthly calendar boxes.

**Description**

The *calendarday(* function is designed to help in creating monthly calendars. A standard monthly calendar has 6 rows and 7 columns (Sunday through Saturday) for a total of 42 boxes. For any given month from 28 to 31 of these boxes will be valid dates. The *calendarday(* function calculates what number from 1 to 31 (if any) should be displayed in one of these 42 boxes. The function returns a number from 1 to 31, or zero if the specified calendar box does not contain a day in this month.

The boxes are numbered from 1 to 42, starting with the upper left hand corner. The table below shows the position of all 42 monthly calendar boxes.

```
S M T W T F S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31 32 33 34 35
36 37 38 39 40 41 42
```

**See Also**

- calendardate( -- helps in creating monthly calendars.

**History**

Version | Status | Notes |

10.0 | No Change | Carried over from Panorama 6.0 |