<?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: SQL date operations: First day, Last day of the month&#8230;	</title>
	<atom:link href="https://blog.dragonsoft.us/2008/02/05/first-day-last-day-of-the-month-and-sql/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.dragonsoft.us/2008/02/05/first-day-last-day-of-the-month-and-sql/</link>
	<description>Talk about Technologies, Software Architecture and Management</description>
	<lastBuildDate>Mon, 26 Nov 2012 20:04:57 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: VIP		</title>
		<link>https://blog.dragonsoft.us/2008/02/05/first-day-last-day-of-the-month-and-sql/comment-page-1/#comment-15359</link>

		<dc:creator><![CDATA[VIP]]></dc:creator>
		<pubDate>Mon, 26 Nov 2012 20:04:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dragonsoftru.com/2007/01/18/first-day-last-day-of-the-month-and-sql/#comment-15359</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://blog.dragonsoft.us/2008/02/05/first-day-last-day-of-the-month-and-sql/comment-page-1/#comment-15337&quot;&gt;Roy&lt;/a&gt;.

select distinct  
dateadd(mm,DATEDIFF(mm, 0, GETDATE()),0)
, dateadd(ss,-1,dateadd(mm,DATEDIFF(mm, 0, GETDATE())-12,0) ),
datediff(mm,dateadd(mm,DATEDIFF(mm, 0, GETDATE()),0), dateadd(ss,-1,dateadd(mm,DATEDIFF(mm, 0, GETDATE())-12,0) ))]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://blog.dragonsoft.us/2008/02/05/first-day-last-day-of-the-month-and-sql/comment-page-1/#comment-15337">Roy</a>.</p>
<p>select distinct<br />
dateadd(mm,DATEDIFF(mm, 0, GETDATE()),0)<br />
, dateadd(ss,-1,dateadd(mm,DATEDIFF(mm, 0, GETDATE())-12,0) ),<br />
datediff(mm,dateadd(mm,DATEDIFF(mm, 0, GETDATE()),0), dateadd(ss,-1,dateadd(mm,DATEDIFF(mm, 0, GETDATE())-12,0) ))</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Roy		</title>
		<link>https://blog.dragonsoft.us/2008/02/05/first-day-last-day-of-the-month-and-sql/comment-page-1/#comment-15337</link>

		<dc:creator><![CDATA[Roy]]></dc:creator>
		<pubDate>Tue, 16 Oct 2012 15:53:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dragonsoftru.com/2007/01/18/first-day-last-day-of-the-month-and-sql/#comment-15337</guid>

					<description><![CDATA[I need a querry that can return an end date from start date and number of months]]></description>
			<content:encoded><![CDATA[<p>I need a querry that can return an end date from start date and number of months</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sir. Hacksalot		</title>
		<link>https://blog.dragonsoft.us/2008/02/05/first-day-last-day-of-the-month-and-sql/comment-page-1/#comment-15334</link>

		<dc:creator><![CDATA[Sir. Hacksalot]]></dc:creator>
		<pubDate>Tue, 11 Sep 2012 23:29:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dragonsoftru.com/2007/01/18/first-day-last-day-of-the-month-and-sql/#comment-15334</guid>

					<description><![CDATA[Can someone please help with setting a date for (Last day of prior month, in prior year)
example: if today is 09/11/2012 the results would be 08/31/2011.]]></description>
			<content:encoded><![CDATA[<p>Can someone please help with setting a date for (Last day of prior month, in prior year)<br />
example: if today is 09/11/2012 the results would be 08/31/2011.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Karen		</title>
		<link>https://blog.dragonsoft.us/2008/02/05/first-day-last-day-of-the-month-and-sql/comment-page-1/#comment-3402</link>

		<dc:creator><![CDATA[Karen]]></dc:creator>
		<pubDate>Thu, 05 Apr 2007 18:06:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dragonsoftru.com/2007/01/18/first-day-last-day-of-the-month-and-sql/#comment-3402</guid>

					<description><![CDATA[I need to add 18 months to the below; for example, 3/1/2006 returns 9/1/2007; 5/1/2007 returns 11/1/2008.  

dateadd(ms, -3, DATEADD(mm, DATEDIFF(m, 0, terminationdate) + 1, 0))]]></description>
			<content:encoded><![CDATA[<p>I need to add 18 months to the below; for example, 3/1/2006 returns 9/1/2007; 5/1/2007 returns 11/1/2008.  </p>
<p>dateadd(ms, -3, DATEADD(mm, DATEDIFF(m, 0, terminationdate) + 1, 0))</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Minified using Disk
Database Caching 10/80 queries in 0.068 seconds using Disk

Served from: blog.dragonsoft.us @ 2026-05-06 23:39:30 by W3 Total Cache
-->