<?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/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: Format Date Fields Using MySQL&#160;DATE_FORMAT()</title> <atom:link href="http://davidwalsh.name/format-date-mysql-date_format/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/format-date-mysql-date_format</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Thu, 09 Feb 2012 14:25:32 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>By: Kyaw Lwin Phyo</title><link>http://davidwalsh.name/format-date-mysql-date_format/comment-page-1#comment-27763</link> <dc:creator>Kyaw Lwin Phyo</dc:creator> <pubDate>Wed, 30 Nov 2011 09:13:38 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=410#comment-27763</guid> <description>SELECT &#039;Date:&#039;, DATE_FORMAT(NOW(),&#039;%a %d %b %Y %r&#039;) into OUTFILE &#039;E:\\SUBCON\\EDWHFiles\\Threshold\\time.txt&#039;sorry the query is like this, not as the above.</description> <content:encoded><![CDATA[<p>SELECT &#8216;Date:&#8217;, DATE_FORMAT(NOW(),&#8217;%a %d %b %Y %r&#8217;) into OUTFILE &#8216;E:\\SUBCON\\EDWHFiles\\Threshold\\time.txt&#8217;</p><p>sorry the query is like this, not as the above.</p> ]]></content:encoded> </item> <item><title>By: Kyaw Lwin Phyo</title><link>http://davidwalsh.name/format-date-mysql-date_format/comment-page-1#comment-27762</link> <dc:creator>Kyaw Lwin Phyo</dc:creator> <pubDate>Wed, 30 Nov 2011 09:12:57 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=410#comment-27762</guid> <description>Hi, I&#039;ve tried
&quot;SELECT &#039;Date:&#039;, NOW() into OUTFILE &#039;E:\\SUBCON\\EDWHFiles\\Threshold\\time.txt&#039;&quot;
but I&#039;m getting this value &quot;Date: Wed\ 30\ Nov\ 2011\ 04:59:36\ PM&quot;.
why is this happening????
Can anyone explain and correct me??
Thanks.</description> <content:encoded><![CDATA[<p>Hi, I&#8217;ve tried<br
/> &#8220;SELECT &#8216;Date:&#8217;, NOW() into OUTFILE &#8216;E:\\SUBCON\\EDWHFiles\\Threshold\\time.txt&#8217;&#8221;<br
/> but I&#8217;m getting this value &#8220;Date: Wed\ 30\ Nov\ 2011\ 04:59:36\ PM&#8221;.<br
/> why is this happening????<br
/> Can anyone explain and correct me??<br
/> Thanks.</p> ]]></content:encoded> </item> <item><title>By: Mark</title><link>http://davidwalsh.name/format-date-mysql-date_format/comment-page-1#comment-27758</link> <dc:creator>Mark</dc:creator> <pubDate>Tue, 29 Nov 2011 15:41:06 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=410#comment-27758</guid> <description>Thanks, David. This is a great resource! Say, any idea how one might format AND order by date? I&#039;m getting very unexpected results.</description> <content:encoded><![CDATA[<p>Thanks, David. This is a great resource! Say, any idea how one might format AND order by date? I&#8217;m getting very unexpected results.</p> ]]></content:encoded> </item> <item><title>By: byh</title><link>http://davidwalsh.name/format-date-mysql-date_format/comment-page-1#comment-27715</link> <dc:creator>byh</dc:creator> <pubDate>Tue, 22 Nov 2011 23:01:15 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=410#comment-27715</guid> <description>Thanks for the great post. Im using this to fetch data from a website.</description> <content:encoded><![CDATA[<p>Thanks for the great post. Im using this to fetch data from a website.</p> ]]></content:encoded> </item> <item><title>By: aneesh</title><link>http://davidwalsh.name/format-date-mysql-date_format/comment-page-1#comment-22796</link> <dc:creator>aneesh</dc:creator> <pubDate>Mon, 21 Feb 2011 06:09:32 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=410#comment-22796</guid> <description>Hi
thanks for explaining this</description> <content:encoded><![CDATA[<p>Hi<br
/> thanks for explaining this</p> ]]></content:encoded> </item> <item><title>By: goyal</title><link>http://davidwalsh.name/format-date-mysql-date_format/comment-page-1#comment-22534</link> <dc:creator>goyal</dc:creator> <pubDate>Wed, 02 Feb 2011 15:21:34 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=410#comment-22534</guid> <description>pls give clarification about the difference between date, time and timestamp datatypes in mysql.</description> <content:encoded><![CDATA[<p>pls give clarification about the difference between date, time and timestamp datatypes in mysql.</p> ]]></content:encoded> </item> <item><title>By: Punjab Engineer</title><link>http://davidwalsh.name/format-date-mysql-date_format/comment-page-1#comment-22484</link> <dc:creator>Punjab Engineer</dc:creator> <pubDate>Fri, 28 Jan 2011 06:31:18 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=410#comment-22484</guid> <description>u have given good information. but pls tell  us code as to how date should be inserted in database, particularly if users input date in dd-mm-yyyy format.</description> <content:encoded><![CDATA[<p>u have given good information. but pls tell  us code as to how date should be inserted in database, particularly if users input date in dd-mm-yyyy format.</p> ]]></content:encoded> </item> <item><title>By: dfgsdfg</title><link>http://davidwalsh.name/format-date-mysql-date_format/comment-page-1#comment-20952</link> <dc:creator>dfgsdfg</dc:creator> <pubDate>Tue, 12 Oct 2010 11:43:15 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=410#comment-20952</guid> <description>http://www.mysqlformatdate.com does all the work for you, all you do is choose the format you</description> <content:encoded><![CDATA[<p><a
href="http://www.mysqlformatdate.com" rel="nofollow">http://www.mysqlformatdate.com</a> does all the work for you, all you do is choose the format you</p> ]]></content:encoded> </item> <item><title>By: fatfreddy</title><link>http://davidwalsh.name/format-date-mysql-date_format/comment-page-1#comment-19164</link> <dc:creator>fatfreddy</dc:creator> <pubDate>Wed, 04 Aug 2010 06:53:05 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=410#comment-19164</guid> <description>Another gem from the meister - I should have a favorites subfolder called &quot;Dave&#039;s invaluable snippets&quot;Cheers again Dave, keep em coming!</description> <content:encoded><![CDATA[<p>Another gem from the meister &#8211; I should have a favorites subfolder called &#8220;Dave&#8217;s invaluable snippets&#8221;</p><p>Cheers again Dave, keep em coming!</p> ]]></content:encoded> </item> <item><title>By: Rodrigo Espinoza</title><link>http://davidwalsh.name/format-date-mysql-date_format/comment-page-1#comment-17310</link> <dc:creator>Rodrigo Espinoza</dc:creator> <pubDate>Wed, 28 Apr 2010 04:43:04 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=410#comment-17310</guid> <description>@Juan Gotti:  hey hello juan this could be prob little late just wanted to give you an option to do this$sql = query (&quot;SELECT DATE_FORMAT(date, &#039;%a %d %b %Y %h::%i:%S %p&#039;) AS date FROM usuarios WHERE id = &#039;$login&#039;&quot;);
$row = fetch ($sql);
$eng = array(&#039;Jan&#039;,&#039;Feb&#039;,&#039;Mar&#039;,&#039;Apr&#039;,&#039;May&#039;,&#039;Jun&#039;,&#039;Jul&#039;,&#039;Aug&#039;,&#039;Sep&#039;,&#039;Oct&#039;,&#039;Nov&#039;,&#039;Dec&#039;,&#039;Mon&#039;,&#039;Tue&#039;,&#039;Wed&#039;,&#039;Thu&#039;,&#039;Fri&#039;,&#039;Sat&#039;,&#039;Sun&#039;);
$esp = array(&#039;Ene&#039;,&#039;Feb&#039;,&#039;Mar&#039;,&#039;Abr&#039;,&#039;May&#039;,&#039;Jun&#039;,&#039;Jul&#039;,&#039;Ago&#039;,&#039;Sep&#039;,&#039;Oct&#039;,&#039;Nov&#039;,&#039;Dic&#039;,&#039;Lunes&#039;,&#039;Martes&#039;,&#039;Miercoles&#039;,&#039;Jueves&#039;,&#039;Viernes&#039;,&#039;Sábado&#039;,&#039;Domingo&#039;);
$row[&#039;date&#039;] = str_replace($eng,$esp,$row[&#039;date&#039;]);Saludos.</description> <content:encoded><![CDATA[<p>@Juan Gotti:  hey hello juan this could be prob little late just wanted to give you an option to do this</p><p> $sql = query (&#8220;SELECT DATE_FORMAT(date, &#8216;%a %d %b %Y %h::%i:%S %p&#8217;) AS date FROM usuarios WHERE id = &#8216;$login&#8217;&#8221;);<br
/> $row = fetch ($sql);<br
/> $eng = array(&#8216;Jan&#8217;,'Feb&#8217;,'Mar&#8217;,'Apr&#8217;,'May&#8217;,'Jun&#8217;,'Jul&#8217;,'Aug&#8217;,'Sep&#8217;,'Oct&#8217;,'Nov&#8217;,'Dec&#8217;,'Mon&#8217;,'Tue&#8217;,'Wed&#8217;,'Thu&#8217;,'Fri&#8217;,'Sat&#8217;,'Sun&#8217;);<br
/> $esp = array(&#8216;Ene&#8217;,'Feb&#8217;,'Mar&#8217;,'Abr&#8217;,'May&#8217;,'Jun&#8217;,'Jul&#8217;,'Ago&#8217;,'Sep&#8217;,'Oct&#8217;,'Nov&#8217;,'Dic&#8217;,'Lunes&#8217;,'Martes&#8217;,'Miercoles&#8217;,'Jueves&#8217;,'Viernes&#8217;,'Sábado&#8217;,'Domingo&#8217;);<br
/> $row['date'] = str_replace($eng,$esp,$row['date']);</p><p>Saludos.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 1/18 queries in 0.011 seconds using disk: basic
Object Caching 865/868 objects using disk: basic

Served from: davidwalsh.name @ 2012-02-09 10:28:00 -->
