title: Formatting date field in Sinatra form
body: <p>I've got a form in Ruby/Sinatra where a date field is displayed:</p>
  
  <pre><code>%input{:type =&gt; "date", :name =&gt; "due_date", :value =&gt; @m.due_date}
  </code></pre>
  
  <p>On-screen, the form field presents as <code>day-month-year</code> (e.g. 23-11-2012).<br>
  I'd like the field content to be displayed as <code>year-month-day</code> (e.g. 2012-11-23).</p>
  
  <p>Suggestions?</p>