Hammer (Deepwinter) 1
Alturiak (The Claw of Winter) 2
Ches (The Claw of Sunsets) 3
Tarsakh (The Claw of the Storms) 4
Mirtul (The Melting) 5
Kythorn (The Time of Flowers) 6
Flamerule (Summertide) 7
Eleasias (Highsun) 8
Eleint (The Fading) 9
Marpenoth (Leafall) 10
Uktar (The Rotting) 11
Nightal (The Drawing Down) 12
Days correspond to months and so you should check for both simultaneously if you want to check for a specific day.
if month() == 1
if day() == 2
(for the second day in Deepwinter)
Some major holidays fall between two months. Check for the last day of one month and the first day of the second in those cases. The holidays are shown below:
Winter Solstice Nightal 20 (12, 20)
Spring Equinox Ches 19 (3, 19)
Greengrass Tarsakh 30 - Mirtul 1 (4, 30 - 5, 1)
Summer Solstice Kythorn 20 (6, 20)
Midsummer Flamerule 30 - Eleasias 1 (7, 30 - 8, 1)
Shieldmeet Eleasias 2 (every four years) (8, 2)
Autumn Equinox Eleint 21 (9, 21)
Harvesttide Eleint 30 - Marpenoth 1 (9, 30 - 10, 1)
Feast of the Moon Uktar 30 - Nightal 1 (11, 30 - 12, 1)
Image is IP of WoTC and used only for our edification. All rights reserved to them and no challenge intended!