I have a rails form that displays a date in a text_field:
<%= form.text_field :check_in_date %>
The date is rendered as yyyy-m
yyyy-m
I added these to my initializers/time_formats.rb and it works great:
initializers/time_formats.rb
# Default format for displaying dates and times Date::DATE_FORMATS[:default] = "%m/%d/%Y" Time::DATE_FORMATS[:default] = "%m/%d/%Y"
Using Ruby 1.9.3 and Rails 3.2.x