time_formats.rb 205 Bytes Edit Raw Blame History 1 2 3 4 5 { :short_date => "%x", # 04/13/10 :long_date => "%a, %b %d, %Y" # Tue, Apr 13, 2010 }.each do |k, v| ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.update(k => v) end