SQL Server Awal Bulan
SELECT DATEADD(month, DATEDIFF(month, 0, @mydate), 0) AS StartOfMonth
MzanziLegend
SELECT DATEADD(month, DATEDIFF(month, 0, @mydate), 0) AS StartOfMonth