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.
Vince W. (Guest)
on 2006-06-11 02: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

Daniel B. (Guest)
on 2006-06-11 02:59
(Received via mailing list)
Vince W. wrote:
> It is now June 10, 2006
> Thanks..

See Time#strftime.


BB (Guest)
on 2006-06-11 08: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.