title: Convert Date into MYSQL Date Format
body: <p>I have this MySQL <code>Date</code> data for 6 months in this format:   </p>
  
  <p><code>2010-01-01</code> to <code>2010-07-01</code> </p>
  
  <p>But from the UI the <em>ToDate</em> and <em>FromDate</em> are passed in this format:</p>
  
  <p><code>Jan 1, 2010</code>  and  <code>July 1, 2010</code></p>
  
  <p>Please tell me how can I convert this data into MySQL equivalent format?</p>