Changing default date format in Rails

In Rails3 you can run:

Date::DATE_FORMATS[:default] = "%m/%d/%Y"

skipping the ActiveSupport::CoreExtensions::...

see your installation of active support, eg:

activesupport-3.0.0.beta3/lib/active_support/core_ext/conversions.rb for more info.

Josh Susser wrote:

When i use,

Date::DATE_FORMATS[:default] = "%m/%d/%Y"

in environment.rb file or any .rb file in config/initializers, works fine Rails 3.0.1, but the same doesn't work with Rails 3.0.4.

Please let me know if there is some other way to define default date formats at application level or if you need any other information.

Thanks Chaitanya

Sean Corbett wrote in post #913239: