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

Popular posts from this blog

python - Strange behavior using PyQt4's 'pyqtSlot' decorator before another decorator -

c# - UnhandledExceptionMode.ThrowException for AppDomain.UnhandledException -

c# - Process.Kill() returns access denied -