I am a bit stuck here, I want to find all the week numbers in a given interval of time and I can't really figure it out
For example , instead of
- > datepart(week,dateadd(day,-1,@oneSingleDate))
(monday is the first day of the week) ,
I need something like
- > datepart(week,@startDate,@endDate)
Given the interval '2019-01-04'-'2019-01-28'
the output needs to be :
WeekNo : 1,2,3,4,5
.