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
Simple one time solution is to use :value option within text_field call instead of adding something to ActiveRecord::Base or CoreExtensions.
:value
text_field
ActiveRecord::Base
CoreExtensions
For example:
<%= f.text_field :some_date, value: @model_instance.some_date.strftime("%d-%m-%Y") %>