<?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: Week of the Month in Mysql</title>
	<atom:link href="http://think-robot.com/2009/04/week-of-the-month-in-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://think-robot.com/2009/04/week-of-the-month-in-mysql/</link>
	<description>Design &#38; Development Blog</description>
	<pubDate>Thu, 09 Sep 2010 16:43:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: steve</title>
		<link>http://think-robot.com/2009/04/week-of-the-month-in-mysql/comment-page-1/#comment-6910</link>
		<dc:creator>steve</dc:creator>
		<pubDate>Thu, 11 Mar 2010 06:54:12 +0000</pubDate>
		<guid isPermaLink="false">http://think-robot.com/?p=173#comment-6910</guid>
		<description>can i have the formula for the week starting from thursday</description>
		<content:encoded><![CDATA[<p>can i have the formula for the week starting from thursday</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joanna</title>
		<link>http://think-robot.com/2009/04/week-of-the-month-in-mysql/comment-page-1/#comment-6601</link>
		<dc:creator>Joanna</dc:creator>
		<pubDate>Thu, 04 Feb 2010 15:16:28 +0000</pubDate>
		<guid isPermaLink="false">http://think-robot.com/?p=173#comment-6601</guid>
		<description>Your formula only calculates increments of 7 days. The first 3 days being in week 1 is the expected behaviour... 4th is a Monday and thus week 2 for Jan 2010.</description>
		<content:encoded><![CDATA[<p>Your formula only calculates increments of 7 days. The first 3 days being in week 1 is the expected behaviour&#8230; 4th is a Monday and thus week 2 for Jan 2010.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amar12312</title>
		<link>http://think-robot.com/2009/04/week-of-the-month-in-mysql/comment-page-1/#comment-6600</link>
		<dc:creator>amar12312</dc:creator>
		<pubDate>Thu, 04 Feb 2010 15:00:07 +0000</pubDate>
		<guid isPermaLink="false">http://think-robot.com/?p=173#comment-6600</guid>
		<description>I think, this is wrong answer. 
For eg. just take January 2010 month and apply above formula. After applying formula we have got only first 3 dates in 1st week. But in our definition, as this is week of month, it should consist first seven dates in 1st week of month.


to calculate week of month in MySql there is simple calculation involved.

CEILING(DAYOFMONTH(date_column)/7)</description>
		<content:encoded><![CDATA[<p>I think, this is wrong answer.<br />
For eg. just take January 2010 month and apply above formula. After applying formula we have got only first 3 dates in 1st week. But in our definition, as this is week of month, it should consist first seven dates in 1st week of month.</p>
<p>to calculate week of month in MySql there is simple calculation involved.</p>
<p>CEILING(DAYOFMONTH(date_column)/7)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tee</title>
		<link>http://think-robot.com/2009/04/week-of-the-month-in-mysql/comment-page-1/#comment-3876</link>
		<dc:creator>Tee</dc:creator>
		<pubDate>Sun, 14 Jun 2009 00:26:47 +0000</pubDate>
		<guid isPermaLink="false">http://think-robot.com/?p=173#comment-3876</guid>
		<description>Just wanted to give you a big thanks for this code! It's such a simple idea but more complicated to achieve than it should be, but you nailed it.</description>
		<content:encoded><![CDATA[<p>Just wanted to give you a big thanks for this code! It&#8217;s such a simple idea but more complicated to achieve than it should be, but you nailed it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
