title: JSON date, display original date in the server's timezone
body: <p>For example, I have a string date like this (I'm getting this from the server in json, from rails app)</p>
  
  <pre><code>s = "2013-09-01T00:00:00.000+08:00"
  </code></pre>
  
  <p>I would like to display it like so</p>
  
  <pre><code>01.09.2013
  </code></pre>
  
  <p>So I'm using moment.js library for this</p>
  
  <pre><code>moment(s).zone("+08:00").format("DD.MM.YYYY")
  &gt;&gt; "01.09.2013"
  </code></pre>
  
  <p>But I don't know if needed timezone is +08:00. If I skip <code>.zone()</code> call, result would be wrong because my browser is in differnt timezone</p>
  
  <pre><code>moment(s).format("DD.MM.YYYY")
  &gt;"31.08.2013"
  </code></pre>
  
  <p>Even though in my original string I had <code>+08:00</code> at the end.</p>
  
  <p>So, my question is how can I extract time zone from json date string using pure javascript or moment.js library?</p>
  
  <p>The simplest way I can think of is extracting the last 6 characters manually,</p>
  
  <pre><code>s.slice(s.length - 6, s.length)
  &gt; "+08:00"
  </code></pre>
  
  <p>But maybe there is a better approach for this task?</p>