For Example something like below
DECLARE @StartDatedatetime
SET @StartDate = '20100101'
SET @EndDate = '20130117'
@StartDate =
@StartDate - 5
the outout should be 20091226
For Example something like below
DECLARE @StartDatedatetime
SET @StartDate = '20100101'
SET @EndDate = '20130117'
@StartDate =
@StartDate - 5
the outout should be 20091226