If you know the year, how can you figure out what the first day is?

AgaBoogaBoo

Lifer
Feb 16, 2003
26,108
5
81
How can you find out what day the first day of a year is with only the year? 2007 for example, started on a Monday.

Is there a simple relationship between this? Maybe add up number of days in a year, divide by 7, and that's how many days it moves over by except on leap years?
 

BigToque

Lifer
Oct 10, 1999
11,700
0
76
Not that this will help you, but I had to do this as my first Java assignment in computer science at university.