declare @d datetimeset @d = getdate() -- or whatever date you want to testselect DATEADD(quarter,DATEDIFF(quarter,0,@d)-1,0)