How to split the string in JavaScript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/96428/how-do-i-split-this-string-with-javascript">How do I split this string with JavaScript?</a><br>
  <a href="http://stackoverflow.com/questions/1493407/how-to-split-a-string-in-javascript">how to split a string in javascript</a>  </p>
</blockquote>



<p>I have a string like this <code>2012-12-05</code></p>

<p>How do I get the Date, Month, Year from this string??</p>

<p>Thanks</p>
