﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Rob Scholl / Article Discussions / Article Discussions by Author </title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 24 May 2012 12:30:47 GMT</lastBuildDate><ttl>20</ttl><item><title>Finding next or previous nth business day excluding weekends</title><link>http://www.sqlservercentral.com/Forums/Topic740730-253-1.aspx</link><description>declare @date datetimedeclare @days intdeclare @weeks intselect @date = '2009-06-21'select @days = 1if (@days &lt; 0)begin	if datepart (dw, @date) = 1		select @date = dateadd (d, -1, @date)	select @weeks = (datepart (dw, @date) + @days - 6)/5endelsebegin	if datepart (dw, @date) = 7		select @date = dateadd (d, 1, @date)	select @weeks = (datepart (dw, @date) + @days - 2)/5endselect dateadd (d, @days + (@weeks*2), @date)</description><pubDate>Tue, 23 Jun 2009 21:56:53 GMT</pubDate><dc:creator>maluthwatta</dc:creator></item><item><title>Finding the Next Business Day Recursively</title><link>http://www.sqlservercentral.com/Forums/Topic228794-253-1.aspx</link><description>Comments posted to this topic are about the content posted at &lt;A HREF="http://www.sqlservercentral.com/columnists/rScholl/findingthenextbusinessdayrecursively.asp"&gt;http://www.sqlservercentral.com/columnists/rScholl/findingthenextbusinessdayrecursively.asp&lt;/A&gt;</description><pubDate>Thu, 13 Oct 2005 13:03:00 GMT</pubDate><dc:creator>Rob Scholl</dc:creator></item></channel></rss>
