using System.Collections.Generic;
using System.Threading.Tasks;
static void Main(string[] args)
Console.WriteLine("Please enter first date");
d1 = Convert.ToInt16(Console.ReadLine());
y1 = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("******");
Console.WriteLine("Please enter second date");
d2 = Convert.ToInt16(Console.ReadLine());
y2 = Convert.ToInt16(Console.ReadLine());
if (m1.ToUpper() == "january")
else if (m1.ToUpper() == "february")
else if (m1.ToUpper() == "march")
else if (m1.ToUpper() == "april")
else if (m1.ToUpper() == "may")
else if (m1.ToUpper() == "june")
else if (m1.ToUpper() == "july")
else if (m1.ToUpper() == "august")
else if (m1.ToUpper() == "september")
else if (m1.ToUpper() == "october")
else if (m1.ToUpper() == "november")
else if (m1.ToUpper() == "december")
if (m2.ToUpper() == "january")
else if (m2.ToUpper() == "february")
else if (m2.ToUpper() == "march")
else if (m2.ToUpper() == "april")
else if (m2.ToUpper() == "may")
else if (m2.ToUpper() == "june")
else if (m2.ToUpper() == "july")
else if (m2.ToUpper() == "august")
else if (m2.ToUpper() == "september")
else if (m2.ToUpper() == "october")
else if (m2.ToUpper() == "november")
else if (m2.ToUpper() == "december")
for (int year = y1; year <= y2; year++)
for (int month = MonthToStart; month < MonthToEnd; month++)
if (year == y1 && month == mm1)
if (year == 2 && month == mm2)
if (month==1 || month==3 || month==5 || month==7 || month==8 || month==10 || month==12)
else if (month==4 || month==6 || month==9 || month==11)
if ( (year%400 ==0) || (year%100 !=0) && (year%4 ==0))
yy = year - ((year / 100) * 100);
c = (cc / 4) - 2 * cc - 1;
m = 26 * (month + 1) / 10;
dayofweek = (c + y + m + d) % 7;
if (month == 12 || month == 1 || month == 2)
else if (month == 3 || month == 4 || month == 5)
else if (month == 6 || month == 7 || month == 8)
Console.WriteLine(month + " " + year + " " + " - " + season);
Console.Write("MO Tu We Th Fr Sa Su");
for (int space = 0; space < margin; space++)
for (int i = DayToStart; i < DayToEnd; i++)