
<?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: Working with Date Calculation and Manipulation in PeopleSoft SQR	</title>
	<atom:link href="https://www.dbtutor.com/2013/11/04/working-date-calculation-manipulation-peoplesoft-sqr/feed" rel="self" type="application/rss+xml" />
	<link>https://www.dbtutor.com/2013/11/04/working-date-calculation-manipulation-peoplesoft-sqr</link>
	<description>Tips for Those Who Want to Learn</description>
	<lastBuildDate>Sat, 07 Jun 2014 11:02:58 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>
		By: Suzanne Schubert		</title>
		<link>https://www.dbtutor.com/2013/11/04/working-date-calculation-manipulation-peoplesoft-sqr#comment-158</link>

		<dc:creator><![CDATA[Suzanne Schubert]]></dc:creator>
		<pubDate>Wed, 26 Mar 2014 11:54:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.dbtutor.com/?p=700#comment-158</guid>

					<description><![CDATA[We have a problem in our sqr when dtu-diff-months is called in datemath.sqc as below:
 The first date is always the Birthdate, and the second the end of a month.
However, when the birthdate has MORE days than the end of month, the procedure is not calculating a whole month, and the result is the same as for the previous month eg. $wDate2 = 1954-07-31, $wDate1 = 2013-06-30.
Datediff works fine in pure SQL.
&lt;pre&gt; #dtu_months = trunc(datediff($wDate2,$wDate1,&#039;month&#039;),0) &lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>We have a problem in our sqr when dtu-diff-months is called in datemath.sqc as below:<br />
 The first date is always the Birthdate, and the second the end of a month.<br />
However, when the birthdate has MORE days than the end of month, the procedure is not calculating a whole month, and the result is the same as for the previous month eg. $wDate2 = 1954-07-31, $wDate1 = 2013-06-30.<br />
Datediff works fine in pure SQL.</p>
<pre> #dtu_months = trunc(datediff($wDate2,$wDate1,'month'),0) </pre>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
