title: Hive cast string to date dd-MM-yyyy
body: <p>How can I cast a string in the format 'dd-MM-yyyy' to a date type also in the format 'dd-MM-yyyy' in Hive?</p>
  
  <p>Something along the lines of:</p>
  
  <pre><code>CAST('12-03-2010' as date 'dd-mm-yyyy')
  </code></pre>