convert the date into different format jquery/javascript
<pre><code>function loadTable() { //function 
    var reportedFromDate = document.IssueForm.reportedFromDate.value; //getting value from input field
    alert(reportedFromDate); //displays dd-mm-yy 31-02-13
}
</code></pre>

<p>I want to convert it as <strong><code>31-FEB-13</code></strong></p>
