I have a date_select field in my rails application:
<%= f.date_select :dateinstructed %>
I would like to reorder the dropdowns, showing that they are displayed as:
DD/MM/YYYY
According to what I read, you can use the: order option, but I'm not sure how to use this option:
<%= f.date_select :dateinstructed, :order = {:day, :month, :year} %>
Obviously this is wrong, but what should I put in place of:
:day, :month, :year
Any help would be appreciated!
Thank,
Danny
source
share