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

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

Camel ProducerTemplate possible memory leak -

javascript - Adhering to a max length setting with jshint -