What is the difference between following date formats in javascript:
console.log(new Date('December 17, 1995')); // 1
console.log(new Date('1995/11/17')); // 2
console.log(new Date('1995-11-17T00:00:00'));// 3
console.log(new Date('1995-11-17 00:00:00'));// 4
console.log(new Date('1995-11-17')); // 5
My understanding is that all are equivalent & we should be getting value as "Sun Dec 17 1995 00:00:00 GMT+0530 (India Standard Time)", for 1st to 4th we are getting desired value but in case of 5th we are getting value as "Fri Nov 17 1995 05:30:00 GMT+0530 (India Standard Time)".
Why there is difference of time in 4th & 5th? Please explain this behavior.