<?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: PHP Get Prior Date or Yesterday</title>
	<atom:link href="http://eligeske.com/php/php-get-prior-date-or-yesterday/feed/" rel="self" type="application/rss+xml" />
	<link>http://eligeske.com/php/php-get-prior-date-or-yesterday/</link>
	<description>My day to day journey through the world wide web.</description>
	<lastBuildDate>Wed, 14 Jul 2010 14:34:15 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: eligeske</title>
		<link>http://eligeske.com/php/php-get-prior-date-or-yesterday/comment-page-1/#comment-47</link>
		<dc:creator>eligeske</dc:creator>
		<pubDate>Sat, 16 Jan 2010 18:30:23 +0000</pubDate>
		<guid isPermaLink="false">http://eligeske.com/?p=152#comment-47</guid>
		<description>Thanks! I&#039;ll have to check that out!</description>
		<content:encoded><![CDATA[<p>Thanks! I&#8217;ll have to check that out!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://eligeske.com/php/php-get-prior-date-or-yesterday/comment-page-1/#comment-41</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Thu, 14 Jan 2010 18:25:33 +0000</pubDate>
		<guid isPermaLink="false">http://eligeske.com/?p=152#comment-41</guid>
		<description>Hi Eli,

You can always use PHP&#039;s strtotime() function, which converts a string into a timestamp, and you can also be less concerned about what format the date comes in.

function daybefore($date){
	return date(&#039;Y-m-d&#039;, strtotime($date . &quot; -1 day&quot;));
}</description>
		<content:encoded><![CDATA[<p>Hi Eli,</p>
<p>You can always use PHP&#8217;s strtotime() function, which converts a string into a timestamp, and you can also be less concerned about what format the date comes in.</p>
<p>function daybefore($date){<br />
	return date(&#8217;Y-m-d&#8217;, strtotime($date . &#8221; -1 day&#8221;));<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
