Ok so you have the year (lets say 1984) and you have a month (lets say june). The date we are interested in is therefore 1-6-1984. We can construct this date like this:
DateTime d = new DateTime(1984, 6, 1);
We also need to have a CultureInfo because the concept of "weeks" can differ all around the world
CultureInfo myCI = new CultureInfo("en-US");
Calender myCal = myCI.Calendar;
We can now see what day of the week this is by doing this:
int week = GetWeekOfYear(d, myCI.DateTimeFormat.CalendarWeekRule, myCI.DateTimeFormat.FirstDayOfWeek;);
Therefore we can make a method for this like this:
public int getDayOfWeekFromMonthAndYear(int month, int year) {
DateTime d = new DateTime(1984, 6, 1);
CultureInfo myCI = new CultureInfo("en-US");
int week = myCal.GetWeekOfYear(d, myCI.DateTimeFormat.CalendarWeekRule, myCI.DateTimeFormat.FirstDayOfWeek;);
}