Date Localization and formatting
I18n.l is the easiest way to do it
And in case you want to use a different format :
You will find more documentation here
I18n.l(@user.created_at)
And in case you want to use a different format :
I18n.l(@user.created_at, :format => :short)
You will find more documentation here
Comments
Post a Comment