<?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:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
	>
<channel>
	<title>Comments on: Dynamic Dates Part III: Monthly Date Ranges</title>
	<atom:link href="http://www.dagira.com/2007/09/12/dynamic-dates-part-iii-monthly-date-ranges/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dagira.com/2007/09/12/dynamic-dates-part-iii-monthly-date-ranges/</link>
	<description>...you are in a twisty maze of passageways, all different...</description>
	<lastBuildDate>Tue, 07 Feb 2012 17:17:49 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Khan</title>
		<link>http://www.dagira.com/2007/09/12/dynamic-dates-part-iii-monthly-date-ranges/comment-page-1/#comment-2067</link>
		<dc:creator>Khan</dc:creator>
		<pubDate>Thu, 01 Dec 2011 17:08:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/09/12/dynamic-dates-part-iii-monthly-date-ranges/#comment-2067</guid>
		<description>can someone publish the Dynamic Dates With db2 Functions. Thanks</description>
		<content:encoded><![CDATA[<p>can someone publish the Dynamic Dates With db2 Functions. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Rathbun</title>
		<link>http://www.dagira.com/2007/09/12/dynamic-dates-part-iii-monthly-date-ranges/comment-page-1/#comment-1484</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Mon, 01 Nov 2010 14:56:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/09/12/dynamic-dates-part-iii-monthly-date-ranges/#comment-1484</guid>
		<description>Hi, Aruna, I see that you have &lt;a href=&quot;http://www.forumtopics.com/busobj/viewtopic.php?t=165656&quot; rel=&quot;nofollow&quot;&gt;posted the same question on BOB&lt;/a&gt;. I have added a reply to that post.</description>
		<content:encoded><![CDATA[<p>Hi, Aruna, I see that you have <a href="http://www.forumtopics.com/busobj/viewtopic.php?t=165656" rel="nofollow">posted the same question on BOB</a>. I have added a reply to that post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aruna</title>
		<link>http://www.dagira.com/2007/09/12/dynamic-dates-part-iii-monthly-date-ranges/comment-page-1/#comment-1482</link>
		<dc:creator>Aruna</dc:creator>
		<pubDate>Fri, 29 Oct 2010 19:56:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/09/12/dynamic-dates-part-iii-monthly-date-ranges/#comment-1482</guid>
		<description>Dave, I need to create report and automate it (every monday morning) and select the last business day available. I have Posting_date object in the report. How to select last business day with this..
Let me know</description>
		<content:encoded><![CDATA[<p>Dave, I need to create report and automate it (every monday morning) and select the last business day available. I have Posting_date object in the report. How to select last business day with this..<br />
Let me know</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Rathbun</title>
		<link>http://www.dagira.com/2007/09/12/dynamic-dates-part-iii-monthly-date-ranges/comment-page-1/#comment-899</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Tue, 17 Nov 2009 03:21:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/09/12/dynamic-dates-part-iii-monthly-date-ranges/#comment-899</guid>
		<description>Hi Anjali, your question doesn&#039;t really fit this post. And to be honest, it seems to me you have already answered it yourself. :) If you&#039;re using an Oracle database you can simply create a predefined condition that prompts the user for a date and does the math as required, something like:

&lt;code&gt;table.some_date between @prompt(&#039;Enter Date&#039;,&#039;D&#039;,,,) and @prompt(&#039;Enter Date&#039;,&#039;D&#039;,,,)+91&lt;/code&gt;

For other databases the structure might be different. For example SQL Server offers the dateadd() function.</description>
		<content:encoded><![CDATA[<p>Hi Anjali, your question doesn&#8217;t really fit this post. And to be honest, it seems to me you have already answered it yourself. <img src='http://www.dagira.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  If you&#8217;re using an Oracle database you can simply create a predefined condition that prompts the user for a date and does the math as required, something like:</p>
<p><code>table.some_date between @prompt('Enter Date','D',,,) and @prompt('Enter Date','D',,,)+91</code></p>
<p>For other databases the structure might be different. For example SQL Server offers the dateadd() function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anjali</title>
		<link>http://www.dagira.com/2007/09/12/dynamic-dates-part-iii-monthly-date-ranges/comment-page-1/#comment-893</link>
		<dc:creator>Anjali</dc:creator>
		<pubDate>Fri, 13 Nov 2009 11:58:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/09/12/dynamic-dates-part-iii-monthly-date-ranges/#comment-893</guid>
		<description>Hi,
I need to add 91 days to the date entered by the user.How can i do it?
I need : Expected Begin Date BETWEEN &quot;Date entered by the User&quot; AND (&quot;Date entered by the User&quot; +91) &quot;.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I need to add 91 days to the date entered by the user.How can i do it?<br />
I need : Expected Begin Date BETWEEN &#8220;Date entered by the User&#8221; AND (&#8221;Date entered by the User&#8221; +91) &#8220;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kay</title>
		<link>http://www.dagira.com/2007/09/12/dynamic-dates-part-iii-monthly-date-ranges/comment-page-1/#comment-864</link>
		<dc:creator>kay</dc:creator>
		<pubDate>Thu, 29 Oct 2009 00:15:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/09/12/dynamic-dates-part-iii-monthly-date-ranges/#comment-864</guid>
		<description>Good Stuff Mr. Rathbun...saved me a lot of trouble.</description>
		<content:encoded><![CDATA[<p>Good Stuff Mr. Rathbun&#8230;saved me a lot of trouble.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Rathbun</title>
		<link>http://www.dagira.com/2007/09/12/dynamic-dates-part-iii-monthly-date-ranges/comment-page-1/#comment-826</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Wed, 14 Oct 2009 16:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/09/12/dynamic-dates-part-iii-monthly-date-ranges/#comment-826</guid>
		<description>Bill, I don&#039;t think your code got posted properly. You might need to read the &quot;tips for formatting comments&quot; notes to get your complete code posted.</description>
		<content:encoded><![CDATA[<p>Bill, I don&#8217;t think your code got posted properly. You might need to read the &#8220;tips for formatting comments&#8221; notes to get your complete code posted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://www.dagira.com/2007/09/12/dynamic-dates-part-iii-monthly-date-ranges/comment-page-1/#comment-825</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Tue, 13 Oct 2009 20:42:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/09/12/dynamic-dates-part-iii-monthly-date-ranges/#comment-825</guid>
		<description>HI dave,

got this... I am using lastday(to_Date(to_char(’01?&#124;&#124;’-&#039;&#124;&#124;&#124;&#124;’-&#039;&#124;&#124;))) this resolved the issue.

Thanks,
Bill</description>
		<content:encoded><![CDATA[<p>HI dave,</p>
<p>got this&#8230; I am using lastday(to_Date(to_char(’01?||’-&#8217;||||’-&#8217;||))) this resolved the issue.</p>
<p>Thanks,<br />
Bill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://www.dagira.com/2007/09/12/dynamic-dates-part-iii-monthly-date-ranges/comment-page-1/#comment-821</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Mon, 12 Oct 2009 21:14:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/09/12/dynamic-dates-part-iii-monthly-date-ranges/#comment-821</guid>
		<description>Hi Dave,

Thank you for your reply. This works for me. But my scenario is:
I am using like this: 

Code: 
datecol between add_months(to_date(to_char(&#039;01&#039;&#124;&#124;&#039;-&#039;&#124;&#124;&#039;&#039;&#124;&#124;&#039;-&#039;&#124;&#124;&#039;&#039;)),-3)and to_Date(to_char(&#039;01&#039;&#124;&#124;&#039;-&#039;&#124;&#124;&#039;&#039;&#124;&#124;&#039;-&#039;&#124;&#124;&#039;&#039;)) 

If user selects current month then display as of current date if user selects previous month then display as of last day of that month. 

Is that be incorporated?

Thanks,
Bill</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>Thank you for your reply. This works for me. But my scenario is:<br />
I am using like this: </p>
<p>Code:<br />
datecol between add_months(to_date(to_char(&#8217;01&#8242;||&#8217;-'||&#8221;||&#8217;-'||&#8221;)),-3)and to_Date(to_char(&#8217;01&#8242;||&#8217;-'||&#8221;||&#8217;-'||&#8221;)) </p>
<p>If user selects current month then display as of current date if user selects previous month then display as of last day of that month. </p>
<p>Is that be incorporated?</p>
<p>Thanks,<br />
Bill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Rathbun</title>
		<link>http://www.dagira.com/2007/09/12/dynamic-dates-part-iii-monthly-date-ranges/comment-page-1/#comment-816</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Fri, 09 Oct 2009 16:09:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/09/12/dynamic-dates-part-iii-monthly-date-ranges/#comment-816</guid>
		<description>Hi, Bill, what you will need to do is convert your year+month into a date. For example, if you have 2009-09 as the year month, you can convert it to a date using the following:

&lt;code&gt;to_date(&#039;2009-09&#039; &#124;&#124; &#039;-01&#039;, &#039;YYYY-MM-DD&#039;)&lt;/code&gt;

This concatenates the day number &#039;-01&#039; to the end of the year+month string, then converts that value to a date using the to_date() function with an appropriate format string. If your year+month is in a different format you may use slightly different syntax but the concept is the same.</description>
		<content:encoded><![CDATA[<p>Hi, Bill, what you will need to do is convert your year+month into a date. For example, if you have 2009-09 as the year month, you can convert it to a date using the following:</p>
<p><code>to_date('2009-09' || '-01', 'YYYY-MM-DD')</code></p>
<p>This concatenates the day number &#8216;-01&#8242; to the end of the year+month string, then converts that value to a date using the to_date() function with an appropriate format string. If your year+month is in a different format you may use slightly different syntax but the concept is the same.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

