<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; UDF &#8211; Get the Day of the Week Function</title>
	<atom:link href="http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Thu, 09 Feb 2012 10:40:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: VIKASH</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-213305</link>
		<dc:creator><![CDATA[VIKASH]]></dc:creator>
		<pubDate>Thu, 08 Dec 2011 08:29:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-213305</guid>
		<description><![CDATA[nice blog thanks]]></description>
		<content:encoded><![CDATA[<p>nice blog thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sujatha</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-209933</link>
		<dc:creator><![CDATA[sujatha]]></dc:creator>
		<pubDate>Sat, 03 Dec 2011 08:33:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-209933</guid>
		<description><![CDATA[if i select calender from to to date it should select only week end dates]]></description>
		<content:encoded><![CDATA[<p>if i select calender from to to date it should select only week end dates</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sujatha</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-209932</link>
		<dc:creator><![CDATA[sujatha]]></dc:creator>
		<pubDate>Sat, 03 Dec 2011 08:18:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-209932</guid>
		<description><![CDATA[i want to display week days dates of the month from created date .

E: if i select radio button as week days on 11/11/2011

it should calculate nov months week dates]]></description>
		<content:encoded><![CDATA[<p>i want to display week days dates of the month from created date .</p>
<p>E: if i select radio button as week days on 11/11/2011</p>
<p>it should calculate nov months week dates</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neeraj</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-192988</link>
		<dc:creator><![CDATA[Neeraj]]></dc:creator>
		<pubDate>Fri, 11 Nov 2011 07:55:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-192988</guid>
		<description><![CDATA[Hi I have created computed col with used following function for GET WEEK OF THE DATE but when create a index on that it says this is Non deterministic function, please help me on that how can i convert it into deterministic

create function dev_log.F_ISO_WEEK_OF_YEAR
    (
    @Date       datetime
    )
returns         int
as
/*
Function F_ISO_WEEK_OF_YEAR returns the
ISO 8601 week of the year for the date passed.
*/
begin

declare @WeekOfYear     int

select
    -- Compute week of year as (days since start of year/7)+1
    -- Division by 7 gives whole weeks since start of year.
    -- Adding 1 starts week number at 1, instead of zero.
    @WeekOfYear =
    (datediff(dd,
    -- Case finds start of year
    case
    when        NextYrStart &lt;= @date
    then        NextYrStart
    when        CurrYrStart &lt;= @date
    then        CurrYrStart
    else        PriorYrStart
    end,@date)/7)+1
from
    (
    select
        -- First day of first week of prior year
        PriorYrStart =
        dateadd(dd,(datediff(dd,-53690,dateadd(yy,-1,aa.Jan4))/7)*7,-53690),
        -- First day of first week of current year
        CurrYrStart =
        dateadd(dd,(datediff(dd,-53690,aa.Jan4)/7)*7,-53690),
        -- First day of first week of next year
        NextYrStart =
        dateadd(dd,(datediff(dd,-53690,dateadd(yy,1,aa.Jan4))/7)*7,-53690)
    from
        (
        select
                --Find Jan 4 for the year of the input date
                Jan4    = 
                dateadd(dd,3,dateadd(yy,datediff(yy,0,@date),0))
        ) aa
    ) a

return @WeekOfYear

end
go]]></description>
		<content:encoded><![CDATA[<p>Hi I have created computed col with used following function for GET WEEK OF THE DATE but when create a index on that it says this is Non deterministic function, please help me on that how can i convert it into deterministic</p>
<p>create function dev_log.F_ISO_WEEK_OF_YEAR<br />
    (<br />
    @Date       datetime<br />
    )<br />
returns         int<br />
as<br />
/*<br />
Function F_ISO_WEEK_OF_YEAR returns the<br />
ISO 8601 week of the year for the date passed.<br />
*/<br />
begin</p>
<p>declare @WeekOfYear     int</p>
<p>select<br />
    &#8212; Compute week of year as (days since start of year/7)+1<br />
    &#8212; Division by 7 gives whole weeks since start of year.<br />
    &#8212; Adding 1 starts week number at 1, instead of zero.<br />
    @WeekOfYear =<br />
    (datediff(dd,<br />
    &#8212; Case finds start of year<br />
    case<br />
    when        NextYrStart &lt;= @date<br />
    then        NextYrStart<br />
    when        CurrYrStart &lt;= @date<br />
    then        CurrYrStart<br />
    else        PriorYrStart<br />
    end,@date)/7)+1<br />
from<br />
    (<br />
    select<br />
        &#8212; First day of first week of prior year<br />
        PriorYrStart =<br />
        dateadd(dd,(datediff(dd,-53690,dateadd(yy,-1,aa.Jan4))/7)*7,-53690),<br />
        &#8212; First day of first week of current year<br />
        CurrYrStart =<br />
        dateadd(dd,(datediff(dd,-53690,aa.Jan4)/7)*7,-53690),<br />
        &#8212; First day of first week of next year<br />
        NextYrStart =<br />
        dateadd(dd,(datediff(dd,-53690,dateadd(yy,1,aa.Jan4))/7)*7,-53690)<br />
    from<br />
        (<br />
        select<br />
                &#8211;Find Jan 4 for the year of the input date<br />
                Jan4    =<br />
                dateadd(dd,3,dateadd(yy,datediff(yy,0,@date),0))<br />
        ) aa<br />
    ) a</p>
<p>return @WeekOfYear</p>
<p>end<br />
go</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-186408</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 01 Nov 2011 13:34:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-186408</guid>
		<description><![CDATA[EXEC sp_help &#039;table_name&#039;]]></description>
		<content:encoded><![CDATA[<p>EXEC sp_help &#8216;table_name&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhu</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-186379</link>
		<dc:creator><![CDATA[Madhu]]></dc:creator>
		<pubDate>Tue, 01 Nov 2011 11:58:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-186379</guid>
		<description><![CDATA[Hi,

I have a question that, I want to see a Table design in SQL Server. So which query I want to write to see the the design.

Thanks and Regards,
Madhu...]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have a question that, I want to see a Table design in SQL Server. So which query I want to write to see the the design.</p>
<p>Thanks and Regards,<br />
Madhu&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ulf</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-176136</link>
		<dc:creator><![CDATA[Ulf]]></dc:creator>
		<pubDate>Fri, 07 Oct 2011 15:34:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-176136</guid>
		<description><![CDATA[To get a deterministic value for the day of week for a given date you could use a combination of datepart and @@firstday. Otherwise your dependent on the settings on the server.

Check out the following site for a better solution:
http://www.lazerwire.com/2011/10/sql-day-of-week.html]]></description>
		<content:encoded><![CDATA[<p>To get a deterministic value for the day of week for a given date you could use a combination of datepart and @@firstday. Otherwise your dependent on the settings on the server.</p>
<p>Check out the following site for a better solution:<br />
<a href="http://www.lazerwire.com/2011/10/sql-day-of-week.html" rel="nofollow">http://www.lazerwire.com/2011/10/sql-day-of-week.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ss</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-175664</link>
		<dc:creator><![CDATA[ss]]></dc:creator>
		<pubDate>Thu, 06 Oct 2011 10:37:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-175664</guid>
		<description><![CDATA[I want to subtract from StartDate from current Date 
from Table 
 
select Hours = datediff(hh,0,DtDiff,StartDate) , Minutes = datepart(minute,DtDiff)
 
(select DtDiff = convert(datetime,&#039;20110715 10:5:45&#039;)- convert(DateTime,GetDate())
)a 
from 
Table Name 

this is my query plz correction on it]]></description>
		<content:encoded><![CDATA[<p>I want to subtract from StartDate from current Date<br />
from Table </p>
<p>select Hours = datediff(hh,0,DtDiff,StartDate) , Minutes = datepart(minute,DtDiff)</p>
<p>(select DtDiff = convert(datetime,&#8217;20110715 10:5:45&#8242;)- convert(DateTime,GetDate())<br />
)a<br />
from<br />
Table Name </p>
<p>this is my query plz correction on it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ash</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-156252</link>
		<dc:creator><![CDATA[Ash]]></dc:creator>
		<pubDate>Thu, 11 Aug 2011 20:03:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-156252</guid>
		<description><![CDATA[SELECT DATENAME(wk,GETDATE())-1

ans: 32





thanks]]></description>
		<content:encoded><![CDATA[<p>SELECT DATENAME(wk,GETDATE())-1</p>
<p>ans: 32</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brijesh</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-156114</link>
		<dc:creator><![CDATA[Brijesh]]></dc:creator>
		<pubDate>Thu, 11 Aug 2011 08:29:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-156114</guid>
		<description><![CDATA[HI Everyone,

Can please help me any one on this issue:

when i&#039;m runing this query:

SELECT  DATENAME(wk,GETDATE())
ans:33

but,with this :
SELECT  DATENAME(wk,GETDATE()-1)
ans:33

can anyone plz tel why it is this ,actualy i think output should be 32 when we do -1.

thanks in advance]]></description>
		<content:encoded><![CDATA[<p>HI Everyone,</p>
<p>Can please help me any one on this issue:</p>
<p>when i&#8217;m runing this query:</p>
<p>SELECT  DATENAME(wk,GETDATE())<br />
ans:33</p>
<p>but,with this :<br />
SELECT  DATENAME(wk,GETDATE()-1)<br />
ans:33</p>
<p>can anyone plz tel why it is this ,actualy i think output should be 32 when we do -1.</p>
<p>thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aanjanneyulu</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-150722</link>
		<dc:creator><![CDATA[Aanjanneyulu]]></dc:creator>
		<pubDate>Tue, 26 Jul 2011 05:39:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-150722</guid>
		<description><![CDATA[Hi,

I want a method like DATEPART(WK,getdate()) , but it should take from monday - sunday.

Thanks in advance.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I want a method like DATEPART(WK,getdate()) , but it should take from monday &#8211; sunday.</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aanjanneyulu</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-150721</link>
		<dc:creator><![CDATA[Aanjanneyulu]]></dc:creator>
		<pubDate>Tue, 26 Jul 2011 05:36:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-150721</guid>
		<description><![CDATA[Hi,

I want Monday - Sunday  week numbers.
I have to group by this week number and i have to get count of records in between that week.

Thanks in advance.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I want Monday &#8211; Sunday  week numbers.<br />
I have to group by this week number and i have to get count of records in between that week.</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mukesh</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-118017</link>
		<dc:creator><![CDATA[mukesh]]></dc:creator>
		<pubDate>Fri, 11 Feb 2011 12:41:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-118017</guid>
		<description><![CDATA[my question is i putup a any date of future and want to make calendre according to this way of any flight



my table is like 


flightno       sun  mon  tues wed thurs  friday saturday
1001            y       y      n       n    n         y         n
1002           n        y      n       y    y         n         y]]></description>
		<content:encoded><![CDATA[<p>my question is i putup a any date of future and want to make calendre according to this way of any flight</p>
<p>my table is like </p>
<p>flightno       sun  mon  tues wed thurs  friday saturday<br />
1001            y       y      n       n    n         y         n<br />
1002           n        y      n       y    y         n         y</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rajan</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-90845</link>
		<dc:creator><![CDATA[rajan]]></dc:creator>
		<pubDate>Sun, 03 Oct 2010 08:26:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-90845</guid>
		<description><![CDATA[Hi Pinal,
i have day of week , on the basis of day of week i want to find the next particular  day (date)

for Example i have 3 =Tuesday ,i want to calculate next tuesday date on  basis of current current date]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,<br />
i have day of week , on the basis of day of week i want to find the next particular  day (date)</p>
<p>for Example i have 3 =Tuesday ,i want to calculate next tuesday date on  basis of current current date</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alejandro</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-85858</link>
		<dc:creator><![CDATA[Alejandro]]></dc:creator>
		<pubDate>Tue, 31 Aug 2010 19:16:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-85858</guid>
		<description><![CDATA[Hi, sorry I&#039;m new on SQL codification ... could you please tell me how can I include this function in a SELECT codification?

Regards.
Alejandro]]></description>
		<content:encoded><![CDATA[<p>Hi, sorry I&#8217;m new on SQL codification &#8230; could you please tell me how can I include this function in a SELECT codification?</p>
<p>Regards.<br />
Alejandro</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: esunshine</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-72860</link>
		<dc:creator><![CDATA[esunshine]]></dc:creator>
		<pubDate>Mon, 24 May 2010 12:20:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-72860</guid>
		<description><![CDATA[how to display weeknumbers and and its correponding year?]]></description>
		<content:encoded><![CDATA[<p>how to display weeknumbers and and its correponding year?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-68476</link>
		<dc:creator><![CDATA[peter]]></dc:creator>
		<pubDate>Sun, 02 May 2010 13:10:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-68476</guid>
		<description><![CDATA[Note that in this code the day is from 0 to 6, not 1 to 7.
i.e. saturday is 0.]]></description>
		<content:encoded><![CDATA[<p>Note that in this code the day is from 0 to 6, not 1 to 7.<br />
i.e. saturday is 0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aya</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-64621</link>
		<dc:creator><![CDATA[aya]]></dc:creator>
		<pubDate>Wed, 07 Apr 2010 00:21:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-64621</guid>
		<description><![CDATA[just want to ask...

how to parse the each date in a year into MS SQL database? if i must store those date in an array?? if so, how can i parse them ??

hope to hear some comments.....

really need.]]></description>
		<content:encoded><![CDATA[<p>just want to ask&#8230;</p>
<p>how to parse the each date in a year into MS SQL database? if i must store those date in an array?? if so, how can i parse them ??</p>
<p>hope to hear some comments&#8230;..</p>
<p>really need.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wilson</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-64102</link>
		<dc:creator><![CDATA[Wilson]]></dc:creator>
		<pubDate>Wed, 31 Mar 2010 08:23:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-64102</guid>
		<description><![CDATA[Continued...


Because I want to get the Week1 to Week5

In my example there are 5 sundays in the Month of May 2010

Week 1 - date will be May 1 to May 2
Week 2 - date will be May 3 to May 9
Week 3 - date will be May 10 to May 16
Week 4 - date will be May 17 to May 23
Week 5 - date will be May 24 to May 30
Week 6 - date will be May 31

The only thing i want to know is the first sunday of the given date in integer in this case...

I want to get the 2,
Because the first sunday in the month of May 2010 is 2]]></description>
		<content:encoded><![CDATA[<p>Continued&#8230;</p>
<p>Because I want to get the Week1 to Week5</p>
<p>In my example there are 5 sundays in the Month of May 2010</p>
<p>Week 1 &#8211; date will be May 1 to May 2<br />
Week 2 &#8211; date will be May 3 to May 9<br />
Week 3 &#8211; date will be May 10 to May 16<br />
Week 4 &#8211; date will be May 17 to May 23<br />
Week 5 &#8211; date will be May 24 to May 30<br />
Week 6 &#8211; date will be May 31</p>
<p>The only thing i want to know is the first sunday of the given date in integer in this case&#8230;</p>
<p>I want to get the 2,<br />
Because the first sunday in the month of May 2010 is 2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wilson</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-64101</link>
		<dc:creator><![CDATA[Wilson]]></dc:creator>
		<pubDate>Wed, 31 Mar 2010 08:15:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-64101</guid>
		<description><![CDATA[Hi,

Can anyone help me to get the first &quot;Sunday&quot; in (Integer) of the given date... which will return the day of the first sunday


Example:
   

Date: &#039;05/22/2010&#039;

Then I want to get the day (integer) of the first sunday of this date &#039;05/22/2010&#039;

It should Return 2           

Because the first sunday in the month of May 2010 is 2]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Can anyone help me to get the first &#8220;Sunday&#8221; in (Integer) of the given date&#8230; which will return the day of the first sunday</p>
<p>Example:</p>
<p>Date: &#8217;05/22/2010&#8242;</p>
<p>Then I want to get the day (integer) of the first sunday of this date &#8217;05/22/2010&#8242;</p>
<p>It should Return 2           </p>
<p>Because the first sunday in the month of May 2010 is 2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shweta</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-64036</link>
		<dc:creator><![CDATA[Shweta]]></dc:creator>
		<pubDate>Tue, 30 Mar 2010 11:56:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-64036</guid>
		<description><![CDATA[Hi Pinal,
I want the start date of week and the end date of week.A date will be passed as a parameter,based on the week number of that date I need the start &amp; end date of that week.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,<br />
I want the start date of week and the end date of week.A date will be passed as a parameter,based on the week number of that date I need the start &amp; end date of that week.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gururajan</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-61733</link>
		<dc:creator><![CDATA[gururajan]]></dc:creator>
		<pubDate>Thu, 25 Feb 2010 04:47:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-61733</guid>
		<description><![CDATA[Hi All,

I want to show the first date of the week, example today date 25-02-2010, i want to 21-02-2010.

Inputs given year,month,week.(example:2010,02,4)

i want to output of this week first date

Gururajan.K]]></description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>I want to show the first date of the week, example today date 25-02-2010, i want to 21-02-2010.</p>
<p>Inputs given year,month,week.(example:2010,02,4)</p>
<p>i want to output of this week first date</p>
<p>Gururajan.K</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-61321</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Wed, 17 Feb 2010 08:02:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-61321</guid>
		<description><![CDATA[Yes Only if the default language of the server is Spanish]]></description>
		<content:encoded><![CDATA[<p>Yes Only if the default language of the server is Spanish</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-61319</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Wed, 17 Feb 2010 07:57:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-61319</guid>
		<description><![CDATA[Probably you need


select dateadd(week,datediff(week,0,date),0)]]></description>
		<content:encoded><![CDATA[<p>Probably you need</p>
<p>select dateadd(week,datediff(week,0,date),0)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-61318</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Wed, 17 Feb 2010 07:54:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-get-the-day-of-the-week-function/#comment-61318</guid>
		<description><![CDATA[@Nagarajan,

Note that all your TIME and DATEs are just VARCHARs
You should do this formation in the front end application


or

If you use SQL Server 2008, make use of new datatypes Time and Date]]></description>
		<content:encoded><![CDATA[<p>@Nagarajan,</p>
<p>Note that all your TIME and DATEs are just VARCHARs<br />
You should do this formation in the front end application</p>
<p>or</p>
<p>If you use SQL Server 2008, make use of new datatypes Time and Date</p>
]]></content:encoded>
	</item>
</channel>
</rss>
