kristianmandrup / ui_datepicker-rails3

jQuery UI datepicker integration for Formtastic, Simple Form and Active Admin
MIT License
50 stars 15 forks source link

SimpleForm: custom values/formats do not work #18

Open kevinvangelder opened 11 years ago

kevinvangelder commented 11 years ago

I've tried outputting a custom date format by using strftime as demonstrated below, using :order => [:month, :day, :year], and one or two other random solutions found around the internet.

= f.input :date, as: :ui_date_picker, input_html: { value: @event.date.strftime("%m/%d/%Y") }

But no matter what format or output I try I always get the horrible YYYY-mm-dd format. Is there something I'm missing (options) or is this a bug in the gem?