Home Forums Article Discussions Article Discussions by Author Discuss content posted by Harsha Majety Function to get number of days in month RE: Function to get number of days in month
Stephen_W_Dodd
SSCommitted
Points: 1628
More actions
April 27, 2011 at 12:52 pm
#1316828
Well, since everyone else likes to do subtractions, I thought I'd contribute an addition only solution 😀 (if you don't count DATEDIFF as subtraction :-))
SELECT DATEDIFF(dd,@testdate,(DATEADD(m,1,@testdate)))