I dont know why, but I have tried all the solutions available around the internet but still couldnt succeed. Event MomentJs couldnt help.
So, I have a date string, "2017-06-05T15:00:00Z", it is coming from rest api. 
I even tried with moment js but doenst help. 
**Note I want date object to be returned as the library expects date object not local string.**
So, far I tried:

```
var d = new Date('2017-06-05T15:00:00Z')
console.log(d.getHours())

```

The above code prints 17 rather than 15! So, what is it I am doing wrong? As the library also while doing its own thing gets 1700 hours as in calendar it shows 1700 hrs rather than 1500 hrs.