title: Javascript date formatting for different timezones
body: <p>I am building an event calendar app, and I am a bit unsure about how this will output for different timezones.</p>
  
  <ol>
  <li>User create an event, select start and end date + time</li>
  <li>The event is displayed in a calendar on selected date and time.</li>
  </ol>
  
  <p>This is how I format the datetime for display in calendar:</p>
  
  <p><strong>Data how it is stored / retrieved from DB:</strong></p>
  
  <pre><code>var startDate = '2014-03-09 12:00:00.000';
  var endDate = '2014-03-09 17:00:00.000';
  </code></pre>
  
  <p><strong>Format of date before output to calendar (basicly how far I have gotten on this):</strong></p>
  
  <pre><code>var start = new Date(startDate.replace(' ', 'T'));
  var end = new Date(endDate.replace(' ', 'T'));
  
  console.log('start: ' + start);
  console.log('end: ' + end);
  </code></pre>
  
  <p><strong>Console Log:</strong></p>
  
  <pre><code>start: Sun Mar 09 2014 12:00:00 GMT+0100 (UTC)
  end: Sun Mar 09 2014 17:00:00 GMT+0100 (UTC)
  </code></pre>
  
  <p>This approach is working just fine, for my timezone, however, I am not sure how this will work for another timezone, example in USA?</p>
  
  <p>The event will <strong>start march 9, 12:00</strong> , and if my approach for another timezone will "change" the start/end time based on user timezone, for the calendars event list, this will not be good.</p>
  
  <p>So my question is, will my approach work across timezones, or will it need more work to accomplish what I am looking for? Any and all suggestions are appreciated :)</p>