Goal: Convert ISO date string to Date Object without considering timezone
I have a ISO string: 2017-07-23T20:30:00.00Z.
I tried converting that string to Date with the following methods:
new Date('2017-07-23T20:30:00.00Z')
moment('2017-07-23T20:30:00.00Z').toDate()
moment.utc('2017-07-23T20:30:00.00Z').toDate()
All are giving the following output: Mon Jul 24 2017 02:00:00 GMT+0530 (India Standard Time)
which is incorrect.
Can you let me know how to get the exact date what was there in string?