When displaying a date, you can use I18n.l
So you would do :
I18n.l @entry.created_at
And if you want to change it’s format :
I18n.l @entry.created_at, :format => :short
The internationalization rails guide is documenting that.
When displaying a date, you can use I18n.l
So you would do :
I18n.l @entry.created_at
And if you want to change it’s format :
I18n.l @entry.created_at, :format => :short
The internationalization rails guide is documenting that.