title: parsing date submitted by jQuery in Rails form
body: <p>I use jquery_datepicker gem for selecting date in my form. However, datepicker passes param in the following format:</p>
  
  <p><code>{"appointment"=&gt;{"starts_at"=&gt;"04/07/2012"}, "commit"=&gt;"Submit", "id"=&gt;"915"}</code></p>
  
  <p>However, Rails requires that the date params must be in the following form:</p>
  
  <p><code>"starts_at(1i)"=&gt;"2012", "starts_at(2i)"=&gt;"4", "starts_at(3i)"=&gt;"7"</code></p>
  
  <p>How should I parse my starts_at and get it back in the latter format? </p>
  
  <p>The reason I need to manually parse it, because for some reason, rails confused 04/07/2012 as Jul 04, instead of April 07 (as jQuery datepicker displayed).</p>