First day of next month: Get the first day of the current month and add 1 month?
These kinds of functions are used in procedure/ reports, SSIS ETLS to extract the data based on the dates. Below are the functions with logic explanation: 1. First day of current month: select DATEADD(mm, DATEDIFF(m,0,GETDATE()),0): in this we have taken out the difference between the months from 0 to current date and…
Answered May 20, 2024 · 75.7K Views Read answer →