<?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: Adding Days To Dates In&#160;MySQL</title> <atom:link href="http://davidwalsh.name/add-dates-mysql/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/add-dates-mysql</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Mon, 21 May 2012 07:46:19 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: Zonin</title><link>http://davidwalsh.name/add-dates-mysql#comment-30310</link> <dc:creator>Zonin</dc:creator> <pubDate>Sat, 25 Feb 2012 18:47:39 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=269#comment-30310</guid> <description>More exciting that it could be:
UPDATE events SET date_starts = DATE_ADD(date_starts,INTERVAL amountofdays DAY) WHERE event_id = 3;amountofdays is the name of the column in the same table;
thus date_starts could be calculated depending on special amountofdays meaning for each row.</description> <content:encoded><![CDATA[<p>More exciting that it could be:<br
/> UPDATE events SET date_starts = DATE_ADD(date_starts,INTERVAL amountofdays DAY) WHERE event_id = 3;</p><p>amountofdays is the name of the column in the same table;<br
/> thus date_starts could be calculated depending on special amountofdays meaning for each row.</p> ]]></content:encoded> </item> <item><title>By: Ben</title><link>http://davidwalsh.name/add-dates-mysql#comment-27860</link> <dc:creator>Ben</dc:creator> <pubDate>Thu, 08 Dec 2011 15:05:22 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=269#comment-27860</guid> <description>Brilliant! You save my day, David!</description> <content:encoded><![CDATA[<p>Brilliant! You save my day, David!</p> ]]></content:encoded> </item> <item><title>By: AMIT GAJJAR</title><link>http://davidwalsh.name/add-dates-mysql#comment-25543</link> <dc:creator>AMIT GAJJAR</dc:creator> <pubDate>Sun, 03 Jul 2011 05:15:00 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=269#comment-25543</guid> <description>THANKS ITS HELPFUL FOR ME.....</description> <content:encoded><![CDATA[<p>THANKS ITS HELPFUL FOR ME&#8230;..</p> ]]></content:encoded> </item> <item><title>By: oSCho</title><link>http://davidwalsh.name/add-dates-mysql#comment-23322</link> <dc:creator>oSCho</dc:creator> <pubDate>Thu, 31 Mar 2011 07:04:04 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=269#comment-23322</guid> <description>Thanks! I&#039;ve been banging my head on the wall with this and your solution worked perfectly!</description> <content:encoded><![CDATA[<p>Thanks! I&#8217;ve been banging my head on the wall with this and your solution worked perfectly!</p> ]]></content:encoded> </item> <item><title>By: Saleem Tahir</title><link>http://davidwalsh.name/add-dates-mysql#comment-16952</link> <dc:creator>Saleem Tahir</dc:creator> <pubDate>Mon, 12 Apr 2010 14:18:52 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=269#comment-16952</guid> <description>Ok- That is helpfull but I want something like&quot; In a form an event is being added and it is add date is set to system date (today) Now I want the Event Expiry date to be automatically added in the event Expiry Date column based on the user choice. i.e User is give the choice to select that the event will expire in Two weeks, four weeks or Six weeks from the date of Adding&quot;</description> <content:encoded><![CDATA[<p>Ok- That is helpfull but I want something like</p><p>&#8221; In a form an event is being added and it is add date is set to system date (today) Now I want the Event Expiry date to be automatically added in the event Expiry Date column based on the user choice. i.e User is give the choice to select that the event will expire in Two weeks, four weeks or Six weeks from the date of Adding&#8221;</p> ]]></content:encoded> </item> <item><title>By: red</title><link>http://davidwalsh.name/add-dates-mysql#comment-16051</link> <dc:creator>red</dc:creator> <pubDate>Thu, 11 Feb 2010 02:01:36 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=269#comment-16051</guid> <description>hi,i&#039;m new to sql and i&#039;m using mysql workbench to generate data mart. i need help..i want to generate dates (e.g. 2005-01-01), day of week ( 1 to 7), day of month (1 to 31), day name and month name  for the whole of year 2005. the primary key is the date_key which starts from 1 to 365 and i already upload the date key into my database. it just that i need to generate all the above attributes using update/set but i dont know what is the correct sql script to generate them automatically and accordingly. would appreciate if u could help me on this..thanks</description> <content:encoded><![CDATA[<p>hi,</p><p>i&#8217;m new to sql and i&#8217;m using mysql workbench to generate data mart. i need help..i want to generate dates (e.g. 2005-01-01), day of week ( 1 to 7), day of month (1 to 31), day name and month name  for the whole of year 2005. the primary key is the date_key which starts from 1 to 365 and i already upload the date key into my database. it just that i need to generate all the above attributes using update/set but i dont know what is the correct sql script to generate them automatically and accordingly. would appreciate if u could help me on this..thanks</p> ]]></content:encoded> </item> <item><title>By: Laura</title><link>http://davidwalsh.name/add-dates-mysql#comment-13136</link> <dc:creator>Laura</dc:creator> <pubDate>Mon, 02 Nov 2009 13:23:09 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=269#comment-13136</guid> <description>Your blog is my Quick Bible in the Caos of Days</description> <content:encoded><![CDATA[<p>Your blog is my Quick Bible in the Caos of Days</p> ]]></content:encoded> </item> <item><title>By: Lewis Walsh</title><link>http://davidwalsh.name/add-dates-mysql#comment-1220</link> <dc:creator>Lewis Walsh</dc:creator> <pubDate>Sat, 17 May 2008 18:11:24 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=269#comment-1220</guid> <description>Nice! Wouldn&#039;t have occurred to me that MySQL had such a feature. Personally I prefer to do all my data arithmetic in seconds before handing the result over to an SQL query, but this is worth noting.</description> <content:encoded><![CDATA[<p>Nice! Wouldn&#8217;t have occurred to me that MySQL had such a feature. Personally I prefer to do all my data arithmetic in seconds before handing the result over to an SQL query, but this is worth noting.</p> ]]></content:encoded> </item> <item><title>By: Felix</title><link>http://davidwalsh.name/add-dates-mysql#comment-901</link> <dc:creator>Felix</dc:creator> <pubDate>Tue, 29 Apr 2008 02:38:06 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=269#comment-901</guid> <description>it&#039;s good!!!!...works fine and it&#039;s usefull for me. tks!!</description> <content:encoded><![CDATA[<p>it&#8217;s good!!!!&#8230;works fine and it&#8217;s usefull for me. tks!!</p> ]]></content:encoded> </item> <item><title>By: david</title><link>http://davidwalsh.name/add-dates-mysql#comment-852</link> <dc:creator>david</dc:creator> <pubDate>Fri, 25 Apr 2008 15:14:46 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=269#comment-852</guid> <description>@Catar:  I don&#039;t know which one is better, per say, but I know that this worked wonderfully!</description> <content:encoded><![CDATA[<p>@Catar:  I don&#8217;t know which one is better, per say, but I know that this worked wonderfully!</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 3/7 queries in 0.010 seconds using disk: basic
Object Caching 805/805 objects using disk: basic

Served from: davidwalsh.name @ 2012-05-21 03:12:26 -->
