From: Ammar Ali Date: 2010-11-09T17:33:59+09:00 Subject: Re: Finding the third(any) Monday(any day) of a month On Tue, Nov 9, 2010 at 10:24 AM, Rashmi P. wrote: > Hi, >   Can any of you pls tell me, how to find the third(any) Monday(any > day) of a month. I can give input as " Third Monday January 2010" and > expecting an output as "2010/01/18" as an date object. > > def getDate(Third, monday, January, 2010) > > > end > > The above function should return me as "2010/01/18". Check out the chronic gem. http://chronic.rubyforge.org/ Regards, Ammar