Calculating the date from the difference in weeks

Example today @date = 2010-02-22 14: 17: 19.393 Number @weeks = 2 The equation I'm looking for is (@date - @weeks = 2010-02-08 14: 17: 19.393)

+3
source share
1 answer
select dateadd(week, @weeks*-1, @date)
+1
source

Source: https://habr.com/ru/post/1733892/


All Articles