Forum: Ruby on Rails Human dates

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
26ca684555abbdb44f01bd1e165e649b?d=identicon&s=25 Vince W. (vince)
on 2006-06-11 00:42
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..
Aee77dba395ece0a04c688b05b07cd63?d=identicon&s=25 Daniel Berger (Guest)
on 2006-06-11 00:59
(Received via mailing list)
Vince W. wrote:
>
>
> It is now June 10, 2006
>
>
> Thanks..
>

See Time#strftime.

Regards,

Dan
7813d26c8ef483e08432ec9c574664d6?d=identicon&s=25 BB (Guest)
on 2006-06-11 06:29
Yeah, it's definitely worth knowing strftime, but here is what you
requested.

Today is <%= Time.now.strftime("%B %d, %Y") %>
This topic is locked and can not be replied to.