qt8gt0bxhw|20009F4EEE83|RyanMain|subtext_Content|Text|0xfbff040100000000e000000001001400
While we're on the subject of dates in T-SQL, I never liked getting the month and year for a date and sticking an '01' in the middle (then casting it all back to a datetime) to get the first day of the month for a given date value. Then you do the same to get the end date by getting the first day of the next month and subtract a 1 from it. This way is much better. And by better I mean cooler ;-)
declare @date datetime
set @date = getdate()
--get first day of month
select dateadd(m, datediff(m, 0, @date), 0)
--get last day of month
select dateadd(m, datediff(m, 0, dateadd(m, 1, @date)), -1)