title: Convert JSON "/Date(1404860400000)/" to javascript date
body: <p>so I am currently creating a webpage that uses data from an Oracle database. I am retrieving a list of data from the database and displaying it on the webpage. The problem is that when retrieving the data, the dates which are located in the list come back as JSON dates.</p>
  
  <p>So whenever I retrieve a date from the database using JSON and try to display it on my webpage, its shown in this format: "/Date(1404860400000)/"</p>
  
  <p>How can I convert this into a date like "dd-mm-yy":"21-AUG-14"?</p>
  
  <p>My current code is like so:</p>
  
  <p>JavaScript - For formatting the data and displaying in a HTML table</p>
  
  <pre><code>  var AuditHTML = "&lt;table class='tablesorter full_width_table info_table_style ui-body-d ui-shadow table-stripe ui-responsive' id='auditTable'&gt;" +
                      "&lt;thead &gt;" +
                         "&lt;tr class='ui-bar-b schedule_row '&gt;" +
                           "&lt;th&gt;ID&lt;/th&gt;" +
                           "&lt;th&gt;User ID&lt;/th&gt;" +
                           "&lt;th&gt;Action&lt;/th&gt;" +
                           "&lt;th&gt;Date&lt;/th&gt;" +
                           "&lt;th&gt;App ID&lt;/th&gt;" +
                           "&lt;th&gt;Device ID&lt;/th&gt;" +
                           "&lt;th&gt;Notes&lt;/th&gt;" +
                         "&lt;/tr&gt;" +
                       "&lt;/thead&gt;" +
                       "&lt;tbody&gt;";
  
  
          for (s = 0; s &lt; auditList.length; s++) {
              if (auditList[s].Date &lt;= loggingto &amp;&amp; auditList[s].Date &gt;= loggingfrom) {
                  AuditHTML += "&lt;tr class='schedule_row display' id='auditTr_" + s + "'&gt;" +
                            "&lt;td&gt; " + auditList[s].ID + "&lt;/td&gt;" +
                            "&lt;td&gt; " + auditList[s].UserID + "&lt;/td&gt;" +
                            "&lt;td&gt; " + auditList[s].Action + "&lt;/td&gt;" +
                            "&lt;td&gt; " + auditList[s].Date + "&lt;/td&gt;" +
                            "&lt;td&gt; " + auditList[s].AppID + "&lt;/td&gt;" +
                            "&lt;td&gt; " + auditList[s].DeviceID + "&lt;/td&gt;" +
                            "&lt;td class='note'&gt; " + auditList[s].Notes + "&lt;/td&gt;";
                  AuditHTML += "&lt;/tr&gt;";
              }
          }
         AuditHTML += "&lt;/tbody&gt;&lt;/table&gt;";
  
         $("#auditContent").html(AuditHTML);
  </code></pre>
  
  <p>HTML - to display table </p>
  
  <pre><code> &lt;div id="auditContent"&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>Thanks for your time/help!</p>