Traditional lunar calendar festivals with region-aware naming. Different regions may observe different festivals or use different names.
Get the Gregorian date of a specific festival in a given year
Calendar configuration
Festival key (e.g., 'spring', 'mid-autumn', 'new-year-eve')
'spring'
'mid-autumn'
'new-year-eve'
Gregorian year
Gregorian date of the festival, or null if the key is not found
null
getFestivalDate(CHINESE_CONFIG, 'spring', 2024) // { year: 2024, month: 2, day: 10 }getFestivalDate(CHINESE_CONFIG, 'mid-autumn', 2024) // { year: 2024, month: 9, day: 17 }getFestivalDate(CHINESE_CONFIG, 'new-year-eve', 2024) // { year: 2025, month: 1, day: 28 } Copy
getFestivalDate(CHINESE_CONFIG, 'spring', 2024) // { year: 2024, month: 2, day: 10 }getFestivalDate(CHINESE_CONFIG, 'mid-autumn', 2024) // { year: 2024, month: 9, day: 17 }getFestivalDate(CHINESE_CONFIG, 'new-year-eve', 2024) // { year: 2025, month: 1, day: 28 }
Traditional lunar calendar festivals with region-aware naming. Different regions may observe different festivals or use different names.