Forum: Ruby on Rails Human dates

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and 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,

Today is <%= %>

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

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.


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

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