<?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: Calculate the number of days between two dates</title>
	<atom:link href="http://tympanus.net/codrops/2009/09/01/calculate-the-number-of-days-between-two-dates/feed/" rel="self" type="application/rss+xml" />
	<link>http://tympanus.net/codrops/2009/09/01/calculate-the-number-of-days-between-two-dates/</link>
	<description>Useful resources and inspiration for creative minds</description>
	<lastBuildDate>Mon, 21 May 2012 14:59:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: cody</title>
		<link>http://tympanus.net/codrops/2009/09/01/calculate-the-number-of-days-between-two-dates/comment-page-1/#comment-79</link>
		<dc:creator>cody</dc:creator>
		<pubDate>Mon, 14 Sep 2009 08:56:57 +0000</pubDate>
		<guid isPermaLink="false">http://tympanus.net/codrops/?p=169#comment-79</guid>
		<description>check out this one:
&lt;a href=&quot;http://kenno.wordpress.com/2009/07/04/php-number-of-days-between-two-dates/&quot; rel=&quot;nofollow&quot;&gt;http://kenno.wordpress.com/2009/07/04/php-number-of-days-between-two-dates/&lt;/a&gt;

greetz</description>
		<content:encoded><![CDATA[<p>check out this one:<br />
<a href="http://kenno.wordpress.com/2009/07/04/php-number-of-days-between-two-dates/" rel="nofollow">http://kenno.wordpress.com/2009/07/04/php-number-of-days-between-two-dates/</a></p>
<p>greetz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig</title>
		<link>http://tympanus.net/codrops/2009/09/01/calculate-the-number-of-days-between-two-dates/comment-page-1/#comment-78</link>
		<dc:creator>Craig</dc:creator>
		<pubDate>Mon, 14 Sep 2009 08:17:29 +0000</pubDate>
		<guid isPermaLink="false">http://tympanus.net/codrops/?p=169#comment-78</guid>
		<description>OK I guessed that it wanted day, month, year as separate values, so I did this:

$tdd=date(&quot;j&quot;);
$tdm=date(&quot;n&quot;);
$tdy=date(&quot;Y&quot;);

...

$std=date(&quot;j&quot;,strtotime($row[&#039;life_time&#039;]));
$stm=date(&quot;n&quot;,strtotime($row[&#039;life_time&#039;]));
$sty=date(&quot;Y&quot;,strtotime($row[&#039;life_time&#039;]));

echo days_between($std,$stm,$sty,$tdd,$tdm,$tdy);

NOW it works :) I don&#039;t know if there&#039;s a shorter way though lol</description>
		<content:encoded><![CDATA[<p>OK I guessed that it wanted day, month, year as separate values, so I did this:</p>
<p>$tdd=date(&#8220;j&#8221;);<br />
$tdm=date(&#8220;n&#8221;);<br />
$tdy=date(&#8220;Y&#8221;);</p>
<p>&#8230;</p>
<p>$std=date(&#8220;j&#8221;,strtotime($row['life_time']));<br />
$stm=date(&#8220;n&#8221;,strtotime($row['life_time']));<br />
$sty=date(&#8220;Y&#8221;,strtotime($row['life_time']));</p>
<p>echo days_between($std,$stm,$sty,$tdd,$tdm,$tdy);</p>
<p>NOW it works :) I don&#8217;t know if there&#8217;s a shorter way though lol</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig</title>
		<link>http://tympanus.net/codrops/2009/09/01/calculate-the-number-of-days-between-two-dates/comment-page-1/#comment-77</link>
		<dc:creator>Craig</dc:creator>
		<pubDate>Mon, 14 Sep 2009 06:40:21 +0000</pubDate>
		<guid isPermaLink="false">http://tympanus.net/codrops/?p=169#comment-77</guid>
		<description>When I echo:

echo days_between(21,8,2009,1,9,2009);

or another manually entered date(s) this function works fine. However, I need to use variables and then it gives a Warning for &#039;Missing Arguement&#039;. I tried:

echo days_between($lt,$today);

where:

$today=date(&quot;j,n,Y&quot;);

and $lt comes from a database result:

$lt=date(&quot;j,n,Y&quot;,strtotime($row[&#039;life_time&#039;]));

If I echo $lt I get the correct database result displayed and likewise $today displays the correct day&#039;s date.

Any ideas what I&#039;m doing wrong?

Thanks!
Craig.</description>
		<content:encoded><![CDATA[<p>When I echo:</p>
<p>echo days_between(21,8,2009,1,9,2009);</p>
<p>or another manually entered date(s) this function works fine. However, I need to use variables and then it gives a Warning for &#8216;Missing Arguement&#8217;. I tried:</p>
<p>echo days_between($lt,$today);</p>
<p>where:</p>
<p>$today=date(&#8220;j,n,Y&#8221;);</p>
<p>and $lt comes from a database result:</p>
<p>$lt=date(&#8220;j,n,Y&#8221;,strtotime($row['life_time']));</p>
<p>If I echo $lt I get the correct database result displayed and likewise $today displays the correct day&#8217;s date.</p>
<p>Any ideas what I&#8217;m doing wrong?</p>
<p>Thanks!<br />
Craig.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  tympanus.net/codrops/2009/09/01/calculate-the-number-of-days-between-two-dates/feed/ ) in 0.19749 seconds, on May 21st, 2012 at 3:19 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 21st, 2012 at 4:19 pm UTC -->
