I want to number weeks from April to September for every year, such that week 1 starts 1st of April and ends the following Saturday and week 2 starts first Sunday of April and ends the following Saturday and so on.... till the end of September. How do I do that using TSQL.
Btw, this code works with any @@DATEFIRST setting. That is, the code is completely any independent of any date and/or language settings and should work correctly under any/all settings.