I have a form field in my Rails view like this:
<%= f.text_field :date, :class => \"datepicker\" %>
A javascript function converts
JQuery datepicker won't format the pre-populated date.
You would need to handle it on the rails side by using the formatted date with the textfield, instead of the raw date which has the default 'yyyy-mm-dd' format.
Example -
<%= f.text_field :date, :class => "datepicker", :value => @model.date.strftime("%d %m %Y") %>
More examples @ Rails date format in a text_field