<?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: Format a Mysql DateTime Field with Zend_Date</title>
	<atom:link href="http://ivanvillareal.com/development/format-a-mysql-datetime-field-with-zend_date/feed/" rel="self" type="application/rss+xml" />
	<link>http://ivanvillareal.com/development/format-a-mysql-datetime-field-with-zend_date/</link>
	<description>IT stuff and more...</description>
	<lastBuildDate>Thu, 02 Feb 2012 19:34:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ivan Villareal</title>
		<link>http://ivanvillareal.com/development/format-a-mysql-datetime-field-with-zend_date/comment-page-1/#comment-33</link>
		<dc:creator>Ivan Villareal</dc:creator>
		<pubDate>Tue, 01 Nov 2011 19:22:40 +0000</pubDate>
		<guid isPermaLink="false">http://ivanvillareal.com/?p=146#comment-33</guid>
		<description>Good to know, perhaps you have a newer version of the framework? it always worked for me when passing the date when I do the object instantiation.</description>
		<content:encoded><![CDATA[<p>Good to know, perhaps you have a newer version of the framework? it always worked for me when passing the date when I do the object instantiation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias K.</title>
		<link>http://ivanvillareal.com/development/format-a-mysql-datetime-field-with-zend_date/comment-page-1/#comment-31</link>
		<dc:creator>Matthias K.</dc:creator>
		<pubDate>Fri, 28 Oct 2011 10:34:42 +0000</pubDate>
		<guid isPermaLink="false">http://ivanvillareal.com/?p=146#comment-31</guid>
		<description>UPDATE: it seems like I can&#039;t use $fmtDate = new Zend_Date($date, Zend_Date::ISO_8601); directly but rather have to create a Zend_Date instance first and then set() the date and time:

$date = new Zend_Date();
$date-&gt;set($dateTimeStringFromMySQL, Zend_Date::ISO_8601);

Although it would be nice to get it working with only one function call, at least I got it to run now.

Best regards</description>
		<content:encoded><![CDATA[<p>UPDATE: it seems like I can&#8217;t use $fmtDate = new Zend_Date($date, Zend_Date::ISO_8601); directly but rather have to create a Zend_Date instance first and then set() the date and time:</p>
<p>$date = new Zend_Date();<br />
$date-&gt;set($dateTimeStringFromMySQL, Zend_Date::ISO_8601);</p>
<p>Although it would be nice to get it working with only one function call, at least I got it to run now.</p>
<p>Best regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias K.</title>
		<link>http://ivanvillareal.com/development/format-a-mysql-datetime-field-with-zend_date/comment-page-1/#comment-30</link>
		<dc:creator>Matthias K.</dc:creator>
		<pubDate>Fri, 28 Oct 2011 09:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://ivanvillareal.com/?p=146#comment-30</guid>
		<description>Hello,

I am currently struggling with converting MySQL&#039;s datetime format into a Zend_Date object. I&#039;ve tried your code but unfortunately I cannot make Zend_Date to return the correct date or time for datetime values retrieved from the DB. 

Did you choose a simple datetime field for modified_date in your example? Or any other varchar value?

Thanks in advance for any clarification.

Best regards</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I am currently struggling with converting MySQL&#8217;s datetime format into a Zend_Date object. I&#8217;ve tried your code but unfortunately I cannot make Zend_Date to return the correct date or time for datetime values retrieved from the DB. </p>
<p>Did you choose a simple datetime field for modified_date in your example? Or any other varchar value?</p>
<p>Thanks in advance for any clarification.</p>
<p>Best regards</p>
]]></content:encoded>
	</item>
</channel>
</rss>

