﻿<?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 Alex Dubitskiy  / Difference between two dates in weeks / 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>Sun, 19 May 2013 03:18:36 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Difference between two dates in weeks</title><link>http://www.sqlservercentral.com/Forums/Topic507411-1301-1.aspx</link><description>Says here that DATEDIFF doesn't consider DATEFIRST.https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=239958</description><pubDate>Wed, 28 May 2008 08:43:03 GMT</pubDate><dc:creator>Pat Reiter</dc:creator></item><item><title>RE: Difference between two dates in weeks</title><link>http://www.sqlservercentral.com/Forums/Topic507411-1301-1.aspx</link><description>I don't think that datediff(wk) salutes @@DateFirst.[font="Courier New"]DateFirst StartDate   EndDate     DateDiff    WeekDiff    --------- ----------- ----------- ----------- -----------         7 Sun 25May08 Mon 26May08           0           0         7 Mon 19May08 Sun 01Jun08           2           2         7 Sat 24May08 Sun 25May08           1           1 DateFirst StartDate   EndDate     DateDiff    WeekDiff    --------- ----------- ----------- ----------- -----------         1 Sun 25May08 Mon 26May08           0           1         1 Mon 19May08 Sun 01Jun08           2           1         1 Sat 24May08 Sun 25May08           1           0 [/font]</description><pubDate>Wed, 28 May 2008 08:29:03 GMT</pubDate><dc:creator>Pat Reiter</dc:creator></item><item><title>RE: Difference between two dates in weeks</title><link>http://www.sqlservercentral.com/Forums/Topic507411-1301-1.aspx</link><description>Couldn't you just use the following?SELECT DATEDIFF(wk,@StartDate,@EndDate)</description><pubDate>Wed, 28 May 2008 07:13:52 GMT</pubDate><dc:creator>hayden-508426</dc:creator></item><item><title>Difference between two dates in weeks</title><link>http://www.sqlservercentral.com/Forums/Topic507411-1301-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/scripts/62805/"&gt;Difference between two dates in weeks&lt;/A&gt;[/B]</description><pubDate>Tue, 27 May 2008 22:46:11 GMT</pubDate><dc:creator>spindoctor</dc:creator></item></channel></rss>