<?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: How do I calculate the number of days between two dates in SQL?</title>
	<atom:link href="http://oraqa.com/2006/07/31/how-do-i-calculate-the-number-of-days-between-two-dates-in-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://oraqa.com/2006/07/31/how-do-i-calculate-the-number-of-days-between-two-dates-in-sql/</link>
	<description>Oracle Question and Answer</description>
	<lastBuildDate>Mon, 19 Dec 2011 14:21:07 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: jkstill</title>
		<link>http://oraqa.com/2006/07/31/how-do-i-calculate-the-number-of-days-between-two-dates-in-sql/comment-page-1/#comment-193</link>
		<dc:creator>jkstill</dc:creator>
		<pubDate>Tue, 01 Aug 2006 23:38:52 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/07/31/how-do-i-calculate-the-number-of-days-between-two-dates-in-sql/#comment-193</guid>
		<description>Simple subtraction.

When two dates are subtracted or added, the value returned is the number of days, possibly with a fractional day.

How many days until the end of the month?

select last_day(sysdate) - sysdate from dual;

How many days until next Monday?

select next_day(sysdate,&#039;Monday&#039;) - sysdate from dual;

How many days until 12:00 on the 12/31/2006?

select trunc(to_date(&#039;12/31/2006 12:00:00&#039;)  - sysdate) from dual;

To do this with dates stored as characters, use the to_date function as in the last example.</description>
		<content:encoded><![CDATA[<p>Simple subtraction.</p>
<p>When two dates are subtracted or added, the value returned is the number of days, possibly with a fractional day.</p>
<p>How many days until the end of the month?</p>
<p>select last_day(sysdate) &#8211; sysdate from dual;</p>
<p>How many days until next Monday?</p>
<p>select next_day(sysdate,&#8217;Monday&#8217;) &#8211; sysdate from dual;</p>
<p>How many days until 12:00 on the 12/31/2006?</p>
<p>select trunc(to_date(&#8217;12/31/2006 12:00:00&#8242;)  &#8211; sysdate) from dual;</p>
<p>To do this with dates stored as characters, use the to_date function as in the last example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie Awad</title>
		<link>http://oraqa.com/2006/07/31/how-do-i-calculate-the-number-of-days-between-two-dates-in-sql/comment-page-1/#comment-192</link>
		<dc:creator>Eddie Awad</dc:creator>
		<pubDate>Mon, 31 Jul 2006 18:34:05 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/07/31/how-do-i-calculate-the-number-of-days-between-two-dates-in-sql/#comment-192</guid>
		<description>How are you storing the dates? in a VARCHAR2 column? NUMBER column?

&lt;a href=&quot;http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:96012348060&quot; rel=&quot;nofollow&quot;&gt;This page&lt;/a&gt; on AskTom should help answering your question.</description>
		<content:encoded><![CDATA[<p>How are you storing the dates? in a VARCHAR2 column? NUMBER column?</p>
<p><a href="http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:96012348060" rel="nofollow">This page</a> on AskTom should help answering your question.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

