cppprogrammer (4/8/2013)
My only feedback is I'm a big fan of sticking to integer arithmetic where possible so a few neat tricks there!
Me too! I knew it was going to be lightning quick when I first saw it just because of the Integer Math in it. "t-clausen.dk" did a heck of a job on this one. Here's his link again (look for his second post on the thread). Let's get everyone to stop over there and lets see if we can drive his post over the 5,000 mark. The man definitely deserves it for this one!
http://stackoverflow.com/questions/7330711/isoweek-in-sql-server-2005
--Jeff Moden
Change is inevitable... Change for the better is not.