when I print Time.now, Today is <%= Time.now %> I get output like It is now Sat Jun 10 18:39:33 EDT 2006 Is there a simple way to change my code so I just get It is now June 10, 2006 Thanks.. -- Posted via http://www.ruby-forum.com/.
Vince W. wrote:> when I print Time.now, > > Today is <%= Time.now %> > > I get output like > > It is now Sat Jun 10 18:39:33 EDT 2006 > > > Is there a simple way to change my code so I just get > > > It is now June 10, 2006 > > > Thanks.. >See Time#strftime. Regards, Dan