A SQL Server Leap Year Test Function

added by BlackWasp
1/29/2012 4:55:31 PM

0 Kicks, 111 Views

Transact-SQL does not provide a standard function that allows developers to determine if a year is a leap year. This article describes two functions. One to calculate the number of days in a year and one that utilises the result to identify leap years.