<?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: Calculating a fiscal year in PHP</title>
	<atom:link href="http://www.tutorius.com/calculating-a-fiscal-year-in-php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tutorius.com/calculating-a-fiscal-year-in-php</link>
	<description></description>
	<lastBuildDate>Mon, 18 Oct 2010 20:04:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Rob</title>
		<link>http://www.tutorius.com/calculating-a-fiscal-year-in-php/comment-page-1#comment-481</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Fri, 23 Oct 2009 16:22:54 +0000</pubDate>
		<guid isPermaLink="false">http://tutorius.com/?p=486#comment-481</guid>
		<description>Hey Jason, thanks for your input.

I modified this so heavily to use it that I didn&#039;t run into that problem (though I haven&#039;t finished debugging so maybe I did.) 

I&#039;ll look more closely at this when I get a chance, but I appreciate your comment.

Cheers,

Rob</description>
		<content:encoded><![CDATA[<p>Hey Jason, thanks for your input.</p>
<p>I modified this so heavily to use it that I didn't run into that problem (though I haven't finished debugging so maybe I did.) </p>
<p>I'll look more closely at this when I get a chance, but I appreciate your comment.</p>
<p>Cheers,</p>
<p>Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.tutorius.com/calculating-a-fiscal-year-in-php/comment-page-1#comment-480</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Fri, 23 Oct 2009 15:14:31 +0000</pubDate>
		<guid isPermaLink="false">http://tutorius.com/?p=486#comment-480</guid>
		<description>There are a couple of bugs in this code which prevent it from working as advertised.  

$fystartdate = strtotime($fyStart.$inputyear);
$fyenddate = strtotime($fyEnd.$inputyear);

should be:
$fystartdate = strtotime($fyStart.&#039;/&#039;.$inputyear);
$fyenddate = strtotime($fyEnd.&#039;/&#039;.$inputyear);


And
if($date &lt; $fyenddate){

should be:
if($date &lt;= $fyenddate){</description>
		<content:encoded><![CDATA[<p>There are a couple of bugs in this code which prevent it from working as advertised.  </p>
<p>$fystartdate = strtotime($fyStart.$inputyear);<br />
$fyenddate = strtotime($fyEnd.$inputyear);</p>
<p>should be:<br />
$fystartdate = strtotime($fyStart.'/'.$inputyear);<br />
$fyenddate = strtotime($fyEnd.'/'.$inputyear);</p>
<p>And<br />
if($date &lt; $fyenddate){</p>
<p>should be:<br />
if($date &lt;= $fyenddate){</p>
]]></content:encoded>
	</item>
</channel>
</rss>

