Q&A for scientific skepticism
SELECT DATEADD(month, DATEDIFF(month, 0, CreationDate), 0) AS Month, eomonth(creationdate) [end of month], CreationDate FROM Posts WHERE PostTypeId = 1 -- Question SELECT DATEADD(month, DATEDIFF(month, 0, CreationDate), 0) AS Month, CreationDate FROM Posts WHERE PostTypeId = 2 -- Answer