﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / Get week no for the cuurent date between two dates / 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>Thu, 20 Jun 2013 03:04:03 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Get week no for the cuurent date between two dates</title><link>http://www.sqlservercentral.com/Forums/Topic1382290-391-1.aspx</link><description>[quote][b]sri.chithu.selva (11/8/2012)[/b][hr]I have two dates , thats the week start date and end date . And i needs to know what is the week no for current between those dates . Is this possible ?[/quote]What defines a "week number" at your company?  For example, are you usig ISO week numbers, SQL week numbers, or some form of special "fiscal week" numbers?  Are the start and end dates also the start and end dates of a single full week, a partial week, or do they span multiple weeks?In any case, the best bet here would probably be to build a "Calendar Table".  You can find many examples and some usage examples by doing a web search on the term.</description><pubDate>Thu, 08 Nov 2012 07:29:25 GMT</pubDate><dc:creator>Jeff Moden</dc:creator></item><item><title>RE: Get week no for the cuurent date between two dates</title><link>http://www.sqlservercentral.com/Forums/Topic1382290-391-1.aspx</link><description>[quote][b]sri.chithu.selva (11/8/2012)[/b][hr]I have two dates , thats the week start date and end date . And i needs to know what is the week no for current between those dates . Is this possible ?[/quote]This explanation is really poor.  If you'd like us to spend our time helping you, please explain the problem, with examples where words are not working.</description><pubDate>Thu, 08 Nov 2012 01:18:38 GMT</pubDate><dc:creator>David McKinney</dc:creator></item><item><title>RE: Get week no for the cuurent date between two dates</title><link>http://www.sqlservercentral.com/Forums/Topic1382290-391-1.aspx</link><description>Have you tried [code="sql"]DATEPART(WW, @Date)?[/code]Refer [url=http://msdn.microsoft.com/en-us/library/ms174420.aspx]DATEPART[/url]</description><pubDate>Thu, 08 Nov 2012 00:53:12 GMT</pubDate><dc:creator>Stewart "Arturius" Campbell</dc:creator></item><item><title>Get week no for the cuurent date between two dates</title><link>http://www.sqlservercentral.com/Forums/Topic1382290-391-1.aspx</link><description>I have two dates , thats the week start date and end date . And i needs to know what is the week no for current between those dates . Is this possible ?</description><pubDate>Thu, 08 Nov 2012 00:17:29 GMT</pubDate><dc:creator>sri.chithu.selva</dc:creator></item></channel></rss>