Changing Date Format in Rails

You can change your date format by doing this

1. open your environment.rb file which is in the configuration

2. put this code in there

ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS[:default]=’%d/%m/%Y’

3. restart your server.

Have Fun…

August 9, 2008. Tags: , . Ruby On Rails. Leave a comment.