I was trying to check what values would return if partial values are sent.
var d = new Date("11/28");
console.log(d.toLocaleDateString())
I was expecting it to be 28th Nov., 2016(current year)
, but it returns 28th Nov., 2001
.
So the question is Why is 2001 considered as default year?