From documentation:
new Date(dateString)
dateString
A string representing an RFC2822 or ISO 8601 date (other formats may be used, but results may be unexpected).
'2015-10-1'
is neither of the supported formats and, as promised, you get unexpected results (whereas '2015-10-01'
is a valid ISO 8601 date).