Calendar generator
Generate calendar data for a Gregorian year: twelve month grids, the solar terms and traditional festivals of each month, and the lunar month starts, in either a month or a year view with a Monday or Sunday week start.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Calendar text
Gregorian grid plus the month's solar terms and each day's lunar name; terms come from the sun's apparent longitude as a UTC+8 date.
Enter a year to build the calendar, e.g. 2024 or 2024-06
Year: 0 · Month: 0 · Days in month: 0 · Leap year: - · Solar terms in the year: 0
What this tool does
- Check which weekday a month starts on, where the solar terms fall and what lunar day each date is — then copy the plain text into a document or weekly plan.
- Plan holidays around Chinese New Year: the last line gives the Gregorian date of lunar new year (2024-02-10, 2025-01-29, 2026-02-17).
- Use the year view to get all twelve months at once with days, first weekday and both solar terms, handy for spotting 29- and 30-day months.
- Get a full Gregorian-to-lunar table for a month with the "show daily lunar names" switch.
Example
Input
2024-02
Output
2024-02 calendar
Solar terms: 立春 4 · 雨水 19
Mon Tue Wed Thu Fri Sat Sun
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*
Lunar day names:
02-01 腊月廿二
02-02 腊月廿三
02-03 腊月廿四
02-04 腊月廿五
02-05 腊月廿六
02-06 腊月廿七
02-07 腊月廿八
02-08 腊月廿九
02-09 腊月三十
02-10 正月初一
02-11 正月初二
02-12 正月初三
02-13 正月初四
02-14 正月初五
02-15 正月初六
02-16 正月初七
02-17 正月初八
02-18 正月初九
02-19 正月初十
02-20 正月十一
02-21 正月十二
02-22 正月十三
02-23 正月十四
02-24 正月十五
02-25 正月十六
02-26 正月十七
02-27 正月十八
02-28 正月十九
02-29 正月二十
Lunar new year: 2024-02-10Verbatim output of locale=en for February 2024 with the defaults (single month, week starts Monday, terms and daily lunar names on). 2024 is a leap year so February has 29 days; 立春 falls on the 4th and 雨水 on the 19th; the 10th is lunar 正月初一 (Chinese New Year). The solar-term names and lunar day names stay in Chinese because they are the calendar data; labels and weekday names are English.
Frequently asked questions
How are the solar terms computed?
Astronomically, not from a lookup table: the moment the sun's apparent longitude reaches a multiple of 15° (Meeus-style low-precision solar position plus Newton iteration down to 1e-7°, minus the ΔT correction), converted to a UTC+8 date. The results can be checked against almanacs: 立春 2024-02-04, 春分 2024-03-20, 冬至 2024-12-21, 立春 2025-02-03, 立春 2026-02-04 and 冬至 2026-12-22. The site's other calendar tools (e.g. jiaqi-2026) share the same implementation — the same lunar table and term algorithm — so there is no second set of values.
Which years of lunar data are covered, and what happens at the edges?
A compressed 1900–2100 lunar table (201 years, the same one lunar-calendar-converter uses) starting at 1900-01-31 (lunar 1900-01-01) and ending at 2100-12-31. January 1–30, 1900 therefore has no lunar data and is shown as "—" with a footnote; a year outside 1900–2100 reports an error instead of guessing.
Is it normal to differ from another perpetual calendar by one day?
Rarely. Within 1900–2100 the compressed table agrees with published almanacs on new moons, and leap months match the astronomical result (2023 leap 2nd month starts 2023-03-22, 2025 leap 6th month starts 2025-07-25, 2033 leap 11th month). Two known cases can shift by a day: a term occurring within about a minute of midnight UTC+8 (this tool uses the low-precision solar model) and using it from another timezone — term dates are UTC+8, so convert before comparing.
Does it compute sexagenary pillars, day officers or auspicious hours?
No. This tool covers the calendar itself: Gregorian grid, solar terms, daily lunar names and the date of Chinese New Year. Sexagenary month pillars, the twelve day officers and almanac recommendations live in dedicated tools (wnl for daily almanac, bazi / ganzhi for pillars) so that one page never mixes conventions.
What do the view and the switches change?
The view toggles between a single month and a 12-month overview; the month selector only applies to the single-month view (a 2024-06 style input wins); the week-start switch decides whether the header begins with Monday or Sunday; turning off solar terms drops the term line, and turning off daily lunar names removes both the per-day lunar list and the * marks in the grid.
Keywords:calendar