From: Shadowfirebird Date: 2008-08-06T17:53:20+09:00 Subject: Re: Get Previous month Hi, thistimelastmonth = Date.today << 1 lastmonth = thistimelastmonth.month answer = Date::MONTHNAMES[month] I wouldn't recommend that you use those variable names, but hopefully you get the idea. On Wed, Aug 6, 2008 at 9:30 AM, Pragash Mr. wrote: > Hi, > I want previous month name > > for example > Time.now.strftime("%B") > will result the month name "August" > > But i need to find the previous month if anybody knows reply me..... > -- > Posted via http://www.ruby-forum.com/. > > -- All you can do is try to know who your friends are as you head off to the war / Pick a star on the dark horizon and follow the light