
new Date('2015-10-20').getDay() giving me 2. in first case, and in second case, it is giving me 1.
Only difference is, In first case, I am calling it twice.
Also, Day is a timezone independant concept, I do not know why changing timezone, is giving different result.