title: Convert datetime from server to string javascript
body: <p>ASP.NET MVC 5 .Net 4.6.1 c#</p>
  
  <p>I set a date on the server like so:</p>
  
  <pre><code>    public JsonResult GetDate()
      {
          var date = DateTime.Now;
          return Json(date);
      }
  </code></pre>
  
  <p>When I call this method via ajax, the date is returned like so:</p>
  
  <pre><code>     Date(1464670800000)
  </code></pre>
  
  <p>I know I can format my date at the server, but i dont want to do that because the date format changes for different sections of the page, so i want to format the date client side. How do I convert that date object returned from the server to a formatted string (mm/dd/yy for instance) in javascript? Thanks</p>