Loading calculator...
Loading calculator...
Generate a monthly calendar grid for any month and year.
Calendar Construction:
1. Find the day of the week for the 1st of the month.
2. Fill the first row with leading nulls for offset.
3. Distribute days across 7-column weeks.
Days in the month are calculated using the last day of the current month (day 0 of the next month).
February in a leap year shows 29 days. The calculator uses JavaScript's Date object, which correctly handles all leap year rules including the century exception.
This calendar starts on Sunday, following the US convention. ISO weeks start on Monday; use the Week Number calculator for ISO-based week views.
The number of days is found using new Date(year, month+1, 0).getDate(), which gives the last day of the month, automatically handling all month lengths.
Use your browser's print function (Ctrl+P or Cmd+P). The calendar grid is styled to print cleanly on a standard page.
Any year supported by JavaScript's Date object is valid, covering a practical range from year 1 to 9999.