How can I make Rails 3 localize my date formats?

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.

Thanks, but I actually want this to show up in form values - e.g. If I'm using: = field_for :publish_from it should show up with the correct date format. – Matthew Savage Oct 7 '10 at 9:15 You can't do that. Any date field should be parsable by TimeTime.

So rails forces the format. – Damien MATHIEU Oct 7 '10 at 13:17.

Check out the delocalize gem, it might help you out some. Https://github. Com/clemens/delocalize railway.at/articles/2009/05/03/new-plugi....

When displaying a date, you can use I18n.l.

Check out the delocalize gem, it might help you out some.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions