Link to home
Start Free TrialLog in
Avatar of oxyoo
oxyooFlag for Sweden

asked on

How to get the start and end date for a year and week number, eg YYYYWW?

Hi,

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.


Thanks!
Avatar of Pratima
Pratima
Flag of India image

ASKER CERTIFIED SOLUTION
Avatar of Binuth
Binuth
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of oxyoo

ASKER

Exactly what I needed, many thanks!!