<?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/"
		>
<channel>
	<title>Comments on: Calendar Table? Yes please!</title>
	<atom:link href="http://facility9.com/2009/01/29/calendar-table-yes-please/feed" rel="self" type="application/rss+xml" />
	<link>http://facility9.com/2009/01/29/calendar-table-yes-please</link>
	<description>Jeremiah Peschka&#039;s ruminations on sql, ruby, c#, and other things</description>
	<lastBuildDate>Wed, 28 Jul 2010 14:05:12 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Denis Gobo</title>
		<link>http://facility9.com/2009/01/29/calendar-table-yes-please#comment-184</link>
		<dc:creator>Denis Gobo</dc:creator>
		<pubDate>Thu, 29 Jan 2009 16:10:38 +0000</pubDate>
		<guid isPermaLink="false">http://facility9.com/?p=299#comment-184</guid>
		<description>To get the last day I always do this

DECLARE @d DATETIME
SET @d = &#039;20071010&#039;
 
SELECT DATEADD(mm, DATEDIFF(mm, 0, @d), 0) AS FirstDayOfMonth,
    DATEADD(mm, DATEDIFF(mm, 0, @d)+1, -1) AS LastDayOfMonth</description>
		<content:encoded><![CDATA[<p>To get the last day I always do this</p>
<p>DECLARE @d DATETIME<br />
SET @d = &#8216;20071010&#8242;</p>
<p>SELECT DATEADD(mm, DATEDIFF(mm, 0, @d), 0) AS FirstDayOfMonth,<br />
    DATEADD(mm, DATEDIFF(mm, 0, @d)+1, -1) AS LastDayOfMonth</p>
]]></content:encoded>
	</item>
</channel>
</rss>
