From: Piyush Ranjan Date: 2007-11-11T12:09:10+09:00 Subject: Re: Date ------=_Part_258_8228502.1194750551297 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline require "date"; Date.today.strftime("%Y%m%d") On Nov 11, 2007 8:18 AM, Tj Superfly wrote: > Hello All! > > Hopefully you aren't all getting annoyed with my really stupid, yet easy > to answer questions. > > Anyway, I'm in need of a way to use the current date and format it in > different ways, ways that I can use it within my program. The format is > as follows. > > yyyymmdd > > No spaces, example: 20071110 (todays date, Nov. 10, 2007) > > :D Thanks in advance. > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_258_8228502.1194750551297--