- Qt 6.10
- Qt Quick Controls
- QML Types
- Calendar
- Qt 6.10.3 Reference Documentation

# Calendar QML Type

A calendar namespace. More...

Import Statement: | `import QtQuick.Controls`
Inherits: | QtObject

- List of all members, including inherited members

## Detailed Description

The Calendar singleton provides miscellaneous calendar-related utilities.

Calendar-related types in Qt Quick Controls use 0-based month numbers, like the JavaScript Date objects. However, this differs from QDate, where the months are numbered starting from 1.

To avoid confusion, you can use the following enumeration values:

Constant | Description
--- | ---
`Calendar.January` | January (0)
`Calendar.February` | February (1)
`Calendar.March` | March (2)
`Calendar.April` | April (3)
`Calendar.May` | May (4)
`Calendar.June` | June (5)
`Calendar.July` | July (6)
`Calendar.August` | August (7)
`Calendar.September` | September (8)
`Calendar.October` | October (9)
`Calendar.November` | November (10)
`Calendar.December` | December (11)

See also MonthGrid, DayOfWeekRow, and WeekNumberColumn.