title: Converting .NET DateTime to JSON Asp.net MVC
body: <p>My webs service is returning a DateTime to a jQuery call. The service returns the data in this format:</p>
  
  <pre><code>/Date(1486308595040)/
  </code></pre>
  
  <p>I am getting multiple data from table of database i have seen many articles on this and they answered this:</p>
  
  <pre><code>var d = new Date();
  d.setTime(1245398693390);
  document.write(d);
  </code></pre>
  
  <p>But i have 1000 or more records from that answer i have to do get each row and convert it into json friendly data that is not a suitable. </p>
  
  <p>My Code :</p>
  
  <pre><code>var history = db.v_recharge_payment_History.Where(x =&gt; x.RCV_UID == loginQuery.ID).OrderByDescending(x =&gt; x.RCV_ID).Take(10).ToArray();
                      dictionary.Add("result", 200);
                      dictionary.Add("data", history);
                      return Json(dictionary, JsonRequestBehavior.AllowGet);
  </code></pre>
  
  <p>How can I convert this into a JavaScript-friendly date without iterate each row ?</p>