With momentjs, how do I tell if 2 moments represent the same day (not, necessarily, the same time)? : <p>I have 2 momentjs objects, <code>moment1</code> and <code>moment2</code>:</p>

<p><a href="https://i.stack.imgur.com/qliEc.png" rel="noreferrer"><img src="https://i.stack.imgur.com/qliEc.png" alt="enter image description here"></a></p>

<p>Why is <code>moment1.isSame(moment2, 'date')</code> returning false??</p>

<p>My understanding is that checking <code>moment1.isSame(moment2, 'day')</code> returns whether they are the same day <em>of the week</em> (at least, that's what it looks like from the docs).  So if both 'day' and 'date' don't work, what is the correct way to determine if the 2 dates represent the same day?</p>

<p>I could have sworn I've used <code>moment1.isSame(moment2, 'date')</code> in the past, but I must be remembering incorrectly...</p>
