GET THE BEGINING OF THE MONTH SQL code example Example: sql server beginning of month SELECT DATEADD(month, DATEDIFF(month, 0, @mydate), 0) AS StartOfMonth