Can someone please help me understand this snippet of code:
DATEADD (dd, -1, DATEADD(mm, DATEDIFF(mm, 0, CONVERT(datetime,
er.DATE_EFFECTIVE)) + 2, 0))
I'm posting this answer for other users that might be seeking out help. So please refer to Cody McPheron's comment: