Skip to main content

@microsoft/fast-foundation > Calendar > getMonthInfo

Calendar.getMonthInfo() method

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

Signature:
getMonthInfo(month?: number, year?: number): CalendarInfo;

Parameters

ParameterTypeDescription
monthnumbermonth of the calendar
yearnumberyear of the calendar
Returns:

CalendarInfo

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