Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Aha! Great thought - just perform the math to find difference between today and Jan 1. Thanks for that answer! That should definitely work. Granted, dividing dayofyear/7 doesn't always give exactly the right answer (think if Jan 1 was on fri/sat/sun, that would be week 52/53 of previous year though I suppose could evaluate that too if we needed), but for this project, will absolutely cover the requirements. Thanks again! Commented May 24, 2019 at 13:30
  • 1
    yeah its not perfect, but with the +1 and rounding down will give the right WOY 99 out of 100 times Commented May 24, 2019 at 13:45