I have 2 momentjs objects, moment1
and moment2
:
Why is moment1.isSame(moment2, 'date')
returning false??
My understanding is that checking moment1.isSame(moment2, 'day')
returns whether they are the same day of the week (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?
I could have sworn I've used moment1.isSame(moment2, 'date')
in the past, but I must be remembering incorrectly...