How to get the first day of the month in SQL Server ? AbundantCode 5 months ago in SQL Server 0 If you want to get the first day of the month of a input datetime variable from a SQL Query , here’s how you do it. SELECT DATEADD(month, DATEDIFF(month, 0, GetDate()), 0) AS StartMonthDate Facebook Twitter Pinterest Share this:PostLike this:Like Loading... Tags : database, How to, SQL Server, tips, tricks
Leave Your Comment