I have a form field in my Rails view like this:
<%= f.text_field :date, :class => \"datepicker\" %>
A javascript function converts
if your are using mysql database you can format the date in query itself.
Sample code
date_format(date_field,"%d %m %y")