Responses

declare @dte as datetime ='2013-08-01'
declare @StDt as Datetime = DATEADD(dd,-(DAY(GETDATE())-1),@dte) -- What is the purpose of this line of code...declare @EnDt as datetime = DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,@dte)+1,0))