﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Maysarah  / Is_Leap Function / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 18 May 2013 18:54:16 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Is_Leap Function</title><link>http://www.sqlservercentral.com/Forums/Topic520751-1248-1.aspx</link><description>You could get the same result from something likeisdate(cast(@year as char(4)) + '-02-29')</description><pubDate>Tue, 19 Aug 2008 03:09:37 GMT</pubDate><dc:creator>jofa</dc:creator></item><item><title>RE: Is_Leap Function</title><link>http://www.sqlservercentral.com/Forums/Topic520751-1248-1.aspx</link><description>I Liked it :)</description><pubDate>Wed, 13 Aug 2008 13:25:23 GMT</pubDate><dc:creator>Maysarah</dc:creator></item><item><title>RE: Is_Leap Function</title><link>http://www.sqlservercentral.com/Forums/Topic520751-1248-1.aspx</link><description>Or alternatively this:[code]select IsLeapYear = case when day(dateadd(day,-1,dateadd(month,2,dateadd(year,@year-1900,0)))) = 29 then 1 else 0 end [/code]Which basically calculates the day before March 1st.</description><pubDate>Tue, 12 Aug 2008 02:52:09 GMT</pubDate><dc:creator>nigel.</dc:creator></item><item><title>Is_Leap Function</title><link>http://www.sqlservercentral.com/Forums/Topic520751-1248-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/scripts/63432/"&gt;Is_Leap Function&lt;/A&gt;[/B]</description><pubDate>Fri, 20 Jun 2008 08:37:18 GMT</pubDate><dc:creator>Maysarah</dc:creator></item></channel></rss>