<%= f.input :date, as: :time, html5: true %> <%= f.input :hour, as: :date, html5: true %> code example
Example: simple form for rails dates
f.input :start_date, as: :date, html5: true
f.input :start_date, as: :date, html5: true