I have an int that holds information about a year and week: YYYYWW, ex:
declare @currentweek int
set @currentweek = 200836
From this, how can I get the start and end date for this week?
PS: I would also like to specify if the week starts with sunday or monday.