Using SQL Server 2008 R2
Trying to figure out out what date this statement produces with a starting date of mydate=10/1/2010
I've tried to break it down piece by piece and pulling the hair I have left.
Thanks for any help
Trying to figure out out what date this statement produces with a starting date of mydate=10/1/2010
Code:
CONVERT(datetime, CONVERT(char(11), DATEADD(dd, - (DAY(DATEADD(mm, 1, drh1.mydate)) - 1), drh1.mydate), 101))
I've tried to break it down piece by piece and pulling the hair I have left.
Thanks for any help