---
id: fast-foundation.calendar.getmonthinfo
title: Calendar.getMonthInfo() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-foundation](./fast-foundation.md) &gt; [Calendar](./fast-foundation.calendar.md) &gt; [getMonthInfo](./fast-foundation.calendar.getmonthinfo.md)

## Calendar.getMonthInfo() method

Gets data needed to render about a calendar month as well as the previous and next months

<b>Signature:</b>

```typescript
getMonthInfo(month?: number, year?: number): CalendarInfo;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  month | number | month of the calendar |
|  year | number | year of the calendar |

<b>Returns:</b>

[CalendarInfo](./fast-foundation.calendarinfo.md)

- an object with data about the current and 2 surrounding months
