title: Format JSON Datetime on client side by Javascript or Jquery
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1933320/convert-a-date-to-string-in-javascript">Convert a date to string in Javascript</a>  </p>
  </blockquote>
  
  
  
  <p>I have date in json format at client side :</p>
  
  <pre><code>/Date(1352745000000)/
  </code></pre>
  
  <p>The code which i have tried to parse Json date:</p>
  
  <pre><code>eval(dateTime.replace(/\/Date\((\d+)\)\//gi, "new Date($1)"));
  </code></pre>
  
  <p>and</p>
  
  <pre><code>new Date(parseInt(dateTime.substr(6)));
  </code></pre>
  
  <p>Out put I am getting:</p>
  
  <pre><code>Tue Nov 27 2012 00:00:00 GMT+0530 (India Standard Time)
  </code></pre>
  
  <p><strong>Desire Output</strong> </p>
  
  <pre><code> 2012-11-27 11:16
  </code></pre>
  
  <p>I am not able to figure out how we will get this.</p>