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

sql - Find last match with latest inserted name in table -

c# - XML serialize base class without knowing derived class -

ios - Invalid IPA: missing embedded provisioning profile. Are you sure this is an ad hoc? -