ruby on rails dates format html code example Example: simple form for rails dates f.input :start_date, as: :date, html5: true