title: Convert UTC datetime to local datetime
body: <p>I tried many times to convert utc datetime to local datetime,and I have failed. My utc datetime format is </p>
  
  <blockquote>
    <p>Fri Mar 8 23:12:27 UTC+0200 2013</p>
  </blockquote>
  
  <p>Also my JavaScript code is </p>
  
  <pre><code>var time = Date(param_time);//param_time is /Date(1362866006646)/
  </code></pre>
  
  <p>And then time is being <strong>Sun Mar 10 00:21:54 UTC+0200 2013</strong> I need to datetime as <strong>2008-01-28T20:24:17Z</strong> because I will convert local datetime to pretty datetime.</p>
  
  <p><a href="http://ejohn.org/files/pretty.js" rel="nofollow">http://ejohn.org/files/pretty.js</a></p>
  
  <p>How can I do this ? I looked at many questions on stackoverflow but no one does it work. Thank you.</p>