<?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: Finding difference of days between two dates in PHP</title>
	<atom:link href="http://roshanbh.com.np/2008/03/finding-days-difference-php.html/feed" rel="self" type="application/rss+xml" />
	<link>http://roshanbh.com.np/2008/03/finding-days-difference-php.html</link>
	<description>Useful Tutorials, Scripts , Tips, and Resources for all PHP and Ajax beginners and experts .</description>
	<lastBuildDate>Sun, 14 Mar 2010 01:15:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Scott - Php</title>
		<link>http://roshanbh.com.np/2008/03/finding-days-difference-php.html/comment-page-1#comment-5016</link>
		<dc:creator>Scott - Php</dc:creator>
		<pubDate>Wed, 06 Jan 2010 06:46:38 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/finding-days-difference-php.html#comment-5016</guid>
		<description>Hi Roshan,  the following page contains a reference to this article.  Great information.

Calculate the difference between two Dates (and time) using Php.  The following page provides a range of different methods (7 in total) for performing date / time calculations using Php, to determine the difference in time (hours, munites), days, months or years between two dates.

See &lt;a href=&quot;http://forums.webmasterhub.net/viewtopic.php?f=23&amp;t=1831&quot; rel=&quot;nofollow&quot;&gt;Php Date Time - 7 Methods to Calculate the Difference between 2 dates&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hi Roshan,  the following page contains a reference to this article.  Great information.</p>
<p>Calculate the difference between two Dates (and time) using Php.  The following page provides a range of different methods (7 in total) for performing date / time calculations using Php, to determine the difference in time (hours, munites), days, months or years between two dates.</p>
<p>See <a href="http://forums.webmasterhub.net/viewtopic.php?f=23&amp;t=1831" rel="nofollow">Php Date Time &#8211; 7 Methods to Calculate the Difference between 2 dates</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: XianD6</title>
		<link>http://roshanbh.com.np/2008/03/finding-days-difference-php.html/comment-page-1#comment-4865</link>
		<dc:creator>XianD6</dc:creator>
		<pubDate>Wed, 02 Dec 2009 07:46:41 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/finding-days-difference-php.html#comment-4865</guid>
		<description>i find your codes very useful,
thanks in advance...</description>
		<content:encoded><![CDATA[<p>i find your codes very useful,<br />
thanks in advance&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: XianD6</title>
		<link>http://roshanbh.com.np/2008/03/finding-days-difference-php.html/comment-page-1#comment-4864</link>
		<dc:creator>XianD6</dc:creator>
		<pubDate>Wed, 02 Dec 2009 07:44:54 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/finding-days-difference-php.html#comment-4864</guid>
		<description>Hi Roshan,

Calculate How Many Days User Has Stayed With The Book Once She Return It).
I am learning PHP/MySQL, and I am also writting the Library Management
System to make sure that I practice what I am learning.

My Problem is:

I want to capture the date when the library user borrow the book and then
check that date to see if the book have exceeded the number of days (to
calculate how many days user has stayed with the book once she return it).
Please help me how I can do that. I am using mysql as my database.</description>
		<content:encoded><![CDATA[<p>Hi Roshan,</p>
<p>Calculate How Many Days User Has Stayed With The Book Once She Return It).<br />
I am learning PHP/MySQL, and I am also writting the Library Management<br />
System to make sure that I practice what I am learning.</p>
<p>My Problem is:</p>
<p>I want to capture the date when the library user borrow the book and then<br />
check that date to see if the book have exceeded the number of days (to<br />
calculate how many days user has stayed with the book once she return it).<br />
Please help me how I can do that. I am using mysql as my database.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patel Dharmendra M</title>
		<link>http://roshanbh.com.np/2008/03/finding-days-difference-php.html/comment-page-1#comment-4629</link>
		<dc:creator>Patel Dharmendra M</dc:creator>
		<pubDate>Sat, 26 Sep 2009 08:19:48 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/finding-days-difference-php.html#comment-4629</guid>
		<description>Thanks dear all my friends this example very good for my website</description>
		<content:encoded><![CDATA[<p>Thanks dear all my friends this example very good for my website</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: search</title>
		<link>http://roshanbh.com.np/2008/03/finding-days-difference-php.html/comment-page-1#comment-4614</link>
		<dc:creator>search</dc:creator>
		<pubDate>Thu, 24 Sep 2009 00:34:20 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/finding-days-difference-php.html#comment-4614</guid>
		<description>Thank you. I have been looking around for this function.</description>
		<content:encoded><![CDATA[<p>Thank you. I have been looking around for this function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nirmal</title>
		<link>http://roshanbh.com.np/2008/03/finding-days-difference-php.html/comment-page-1#comment-4495</link>
		<dc:creator>Nirmal</dc:creator>
		<pubDate>Tue, 25 Aug 2009 17:54:16 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/finding-days-difference-php.html#comment-4495</guid>
		<description>I think this is better than aboe proposed solution
function daysDifference($endDate, $beginDate)
{
   	$beginDate = strtotime($beginDate);
	$endDate = strtotime($endDate);
	$diff = $endDate - $beginDate;
	$diff = ceil($diff / (60*60*24)) ; 
	return $diff;
}</description>
		<content:encoded><![CDATA[<p>I think this is better than aboe proposed solution<br />
function daysDifference($endDate, $beginDate)<br />
{<br />
   	$beginDate = strtotime($beginDate);<br />
	$endDate = strtotime($endDate);<br />
	$diff = $endDate &#8211; $beginDate;<br />
	$diff = ceil($diff / (60*60*24)) ;<br />
	return $diff;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vaskar</title>
		<link>http://roshanbh.com.np/2008/03/finding-days-difference-php.html/comment-page-1#comment-4266</link>
		<dc:creator>vaskar</dc:creator>
		<pubDate>Mon, 27 Jul 2009 05:00:16 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/finding-days-difference-php.html#comment-4266</guid>
		<description>Thank you excellent function too much helpful</description>
		<content:encoded><![CDATA[<p>Thank you excellent function too much helpful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max</title>
		<link>http://roshanbh.com.np/2008/03/finding-days-difference-php.html/comment-page-1#comment-4231</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Tue, 21 Jul 2009 08:29:03 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/finding-days-difference-php.html#comment-4231</guid>
		<description>Thanks for the code, it works great! :)</description>
		<content:encoded><![CDATA[<p>Thanks for the code, it works great! <img src='http://roshanbh.com.np/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vishwa</title>
		<link>http://roshanbh.com.np/2008/03/finding-days-difference-php.html/comment-page-1#comment-3681</link>
		<dc:creator>vishwa</dc:creator>
		<pubDate>Thu, 19 Mar 2009 11:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/finding-days-difference-php.html#comment-3681</guid>
		<description>can u please tell me how to compaire day month and year given two date form two date field........................! (&#039;,&#039;)</description>
		<content:encoded><![CDATA[<p>can u please tell me how to compaire day month and year given two date form two date field&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;! (&#8216;,&#8217;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt</title>
		<link>http://roshanbh.com.np/2008/03/finding-days-difference-php.html/comment-page-1#comment-2920</link>
		<dc:creator>matt</dc:creator>
		<pubDate>Thu, 23 Oct 2008 08:42:50 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/finding-days-difference-php.html#comment-2920</guid>
		<description>thankyou thankyou thankyou :D</description>
		<content:encoded><![CDATA[<p>thankyou thankyou thankyou <img src='http://roshanbh.com.np/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roshan</title>
		<link>http://roshanbh.com.np/2008/03/finding-days-difference-php.html/comment-page-1#comment-649</link>
		<dc:creator>Roshan</dc:creator>
		<pubDate>Sat, 19 Apr 2008 12:21:51 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/finding-days-difference-php.html#comment-649</guid>
		<description>Thanks bill for the appreciation...</description>
		<content:encoded><![CDATA[<p>Thanks bill for the appreciation&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Evans</title>
		<link>http://roshanbh.com.np/2008/03/finding-days-difference-php.html/comment-page-1#comment-648</link>
		<dc:creator>Bill Evans</dc:creator>
		<pubDate>Sat, 19 Apr 2008 12:13:15 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/finding-days-difference-php.html#comment-648</guid>
		<description>Hi,
I have found all of your articles very useful and to the point. Thank you.
Bill</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I have found all of your articles very useful and to the point. Thank you.<br />
Bill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: val</title>
		<link>http://roshanbh.com.np/2008/03/finding-days-difference-php.html/comment-page-1#comment-559</link>
		<dc:creator>val</dc:creator>
		<pubDate>Wed, 02 Apr 2008 07:08:41 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/finding-days-difference-php.html#comment-559</guid>
		<description>ah.. i see.. uwkiee.. :) thanks for answering my question..</description>
		<content:encoded><![CDATA[<p>ah.. i see.. uwkiee.. <img src='http://roshanbh.com.np/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  thanks for answering my question..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roshan</title>
		<link>http://roshanbh.com.np/2008/03/finding-days-difference-php.html/comment-page-1#comment-527</link>
		<dc:creator>Roshan</dc:creator>
		<pubDate>Fri, 28 Mar 2008 09:04:53 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/finding-days-difference-php.html#comment-527</guid>
		<description>dear val..Julian day Count in PHP supports dates ranging from  4714 B.C. to 9999 A.D so I&#039;ve converted the Gregorian date to Julian day Count in this function.</description>
		<content:encoded><![CDATA[<p>dear val..Julian day Count in PHP supports dates ranging from  4714 B.C. to 9999 A.D so I&#8217;ve converted the Gregorian date to Julian day Count in this function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: val</title>
		<link>http://roshanbh.com.np/2008/03/finding-days-difference-php.html/comment-page-1#comment-526</link>
		<dc:creator>val</dc:creator>
		<pubDate>Fri, 28 Mar 2008 04:57:53 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/03/finding-days-difference-php.html#comment-526</guid>
		<description>hi! nice function.. but was just wondering why the function had to convert a Gregorian date to Julian day Count? [sorry.. it&#039;s the first time I saw it..]</description>
		<content:encoded><![CDATA[<p>hi! nice function.. but was just wondering why the function had to convert a Gregorian date to Julian day Count? [sorry.. it's the first time I saw it..]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
