I am looking for "C" code that correctly calculates the week number for any year, given any date as input. I using the western style approach. Where sunday is my first day of the week. In calculating the week number, there are a lot of rules and offsets to be aware of. Some of which I don't even know about. I've tried to figure this problem out for myself for the past two months and have had zero success. Is there any help and knowledge out there??? I sure could use if. Thanks.