This is how I format dates in one of my projects:

message.created_at.strftime("%b %d %Y at %H:%M")

That gives "Jun 12 2009 at 11:34" if I remember correctly. Just play 
with it, very simple.

http://www.ruby-doc.org/core/classes/Time.html#M000298

Cheers.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to