SQL SERVER – How to get first Sunday of next month using EOMONTH
I came across this query when I was automating one of my services for a customer and it had to run on first Sunday of every month. I already had this solution earlier and utilized it in many places,...
View ArticleSQL SERVER 2012 – How to check date is End of Month date or not?
Today is month end (30 September 2013) and I was checking my general checklist for month end closing procedure. I saw one of my scripts that I had written earlier regarding how to check whether a date...
View ArticleSQL SERVER 2012 – Detecting Leap Year in T-SQL using SQL SERVER 2012 Functions
I was working on statistical reports and I had to display whether the given year was leap year or not in a field. So, I developed few ways using SQL SERVER 2012 functions to detect whether leap year or...
View ArticleSQL SERVER 2012 -Date and Time Function – EOMONTH
“How to calculate the last date of the current, previous & next month” ? I have seen this question many times in different blogs and there are multiple approaches that we have been following to...
View Article