public DayOfWeek EthiopianDayOfWeek(int ethiopianYear, int ethiopianMonth, int ethiopianDay)
{
//The input is in the ethiopian calendar.
int i = (Math.Abs(EthiopianToFixed(ethiopianYear, ethiopianMonth, 1)) % 7);
switch (i)
{
case 0:
return DayOfWeek.Sunday;
case 1:
return DayOfWeek.Monday;
case 2:
return DayOfWeek.Tuesday;
case 3:
return DayOfWeek.Wednesday;
case 4:
return DayOfWeek.Thursday;
case 5:
return DayOfWeek.Friday;
case 6:
return DayOfWeek.Saturday;
}
return DayOfWeek.Sunday;
}