06-28-2004
9,926,
461
Join Date: Aug 2001
Last Activity: 26 February 2016, 12:31 PM EST
Location: Ashburn, Virginia
Posts: 9,926
Thanks Given: 63
Thanked 461 Times in 270 Posts
Navigate:
Our Home Page -> Answers to Frequently Asked Questions -> Yesterdays Date/Date Arithmetic
and take a look at my datacalc routine.
Try to compute the Modified Julian Date of February 29 of the year in question. If you succeed you have a leap year which has too many days to be only 52 weeks.
A non-leap is 364 days which is exactly 7 * 52. In my mind such a year is always 52 weeks in length. But to determine if the year exactly comprises 52 weeks each starting with Sunday, compute the Day of the Week of Jan 1. If Jan 1 is a Sunday, the anwser is yes.