Ok, I am not sure how to approach this… I am using an open source CMS (Umbraco) and want to create a macro that rotates content every three weeks. So basically I have three documents and I want to show document 1, 2 or 3 each week (total three week rotation) based on a given start date… Any suggestions? I suck at working with dates in C#!
I don’t need any specific code other than a C# function that spits back week 1, 2 or 3 given start date…
This works, although you may want to adjust it if you always want the weeks to start on a given day (e.g. Sunday).