title: Strange behavior formatting moment.js date
body: <p>We are tracking down a bug in our application that seemingly is related to moment.js formatting.</p>
  
  <p>Here's the problematic call (reproduced in Chrome, FF, and Edge, for reference):</p>
  
  <pre><code>moment('2016-03-13T23:59:59.999-06:00').format('YYYY-MM-DD')
  </code></pre>
  
  <p>What we expect:</p>
  
  <blockquote>
    <p>2016-03-13</p>
  </blockquote>
  
  <p>What we get:</p>
  
  <blockquote>
    <p>2016-03-14</p>
  </blockquote>
  
  <p>This seemingly has something to do with daylight savings time as this is the only date (so far) that we've been able to reproduce this incorrect behavior on and DST flipped on that day.</p>
  
  <p>If we switch the UTC offset to <code>-05:00</code> then it works properly.</p>
  
  <p>Here's a simple JSBIN to <a href="http://jsbin.com/xumumoyepu/edit?js,console" rel="noreferrer">demonstrate</a></p>
  
  <p>What's going on here? How can we address this?</p>