sql - Given year only, find last day of February -
I need a SQL Server function, when the year is given only as a string, on the last day of February Gives or returns or if that year is a leap year
DECLARE @ year Select VARCHAR (4) SET @Year = '2013' DATEADD (DAY, -1, year @ '0301')
Comments
Post a Comment