I am passing YYYY-MM-DD-hrs-min-sec as arguments in my node js application and getting wrong output,
Here is what I am passing in my nodeJs:
console.log("arrivaldateN", new Date("2019-11-25T15:48:43.14"))
//Op => 2019-11-25T10:18:43.140Z
console.log("arrivaldateN", new Date(2019, 10, 25, 15, 48,43))
// op => 2019-11-25T10:18:43.140Z
My expected output is like this 2019-11-25T15:48:43.140Z
here I got wrong hrs and mins in node js Date object.
while doing the same thing in chrome console and it will give me correct output
> new Date(2019, 10, 25, 15, 48,43)
> Mon Nov 25 2019 15:48:43 GMT+0530 (India Standard Time)
is there anything wrong in the provided code?