var NewFDate = new Date(2017, 01, 31);
its giveing me out put as NewFDate = Fri Mar 03 2017 00:00:00 GMT+0530 (India Standard Time)
but i need tue jan 31 2017
var NewTDate = new Date(2017, 02, 2);
its giveing me out put as NewTDate =Thu Mar 02 2017 00:00:00 GMT+0530 (India Standard Time)
but i need tue feb 02 2017
why i a getting wrong date