title: from unix timestamp to datetime
body: <p>I have something like <code>/Date(1370001284000+0200)/</code> as timestamp. I guess it is a unix date, isn't it? How can I convert this to a date like this: <code>31.05.2013 13:54:44</code></p>
  
  <p>I tried <a href="http://www.epochconverter.com/" rel="noreferrer">THIS</a> converter for 1370001284 and it gives the right date. So it is in seconds.</p>
  
  <p>But I still get the wrong date for:</p>
  
  <pre><code>var substring = unix_timestamp.replace("/Date(", "");
  substring = substring.replace("000+0200)/", "");
  var date = new Date();
  date.setSeconds(substring);
  return date;
  </code></pre>