SSIS - Find first day and last day of previous week in SSIS expression
In order to get the first and last day of the previous week, we can use the following expressions within derived columns:
First day of previous week
DATEADD("wk",DATEDIFF("wk",7,GETDATE()),0)
Last day of previous week
DATEADD("wk",DATEDIFF("wk",7,GETDATE()),6)
References
Comments
Post a Comment