I was building a custom DateTime picker. And I encountered an error when using the getDay function in javascript. It is described as following
var d = new Date();
d.setFullYear(1998,9,17);
var day= d.getDay();
console.log(day); //returns day 6(which is day saturday in javascript)
but when I Google 17/09/1998
it returns Thursday(which is day 4). Is Google is returning the wrong value