I was surprised to realize that
new Date('2015-02-15')
and new Date('02-15-2015')
return different results. One parses the date as midnight UTC time, the other is parsed as midnight local time. This is also true of the moment-timezone package.
Is there a way to parse these dates in a standard way, either using moment or the builtin Date?