luvtitans50
MIS
I am trying to create a date parameter (@startdate) that includes the minimum of the 2: 1-beginning of the year or 2- @enddate-13?
It needs to be something like:
I have an @enddate paramater being passed in and I need to always go back 13 weeks from that date. If I pass in @enddate = '2-26-1010' my range would be '11/29/09-2/26/1010? What I am trying to accomplish is to always get the minimum of either the beginning week of the year or the week that is 13 weeks back from @enddate.
I need some help on accomplishing that; please advise!!
Thanks,
It needs to be something like:
I have an @enddate paramater being passed in and I need to always go back 13 weeks from that date. If I pass in @enddate = '2-26-1010' my range would be '11/29/09-2/26/1010? What I am trying to accomplish is to always get the minimum of either the beginning week of the year or the week that is 13 weeks back from @enddate.
I need some help on accomplishing that; please advise!!
Thanks,