I'm using moment js to deal with date and times in my project. When I'm trying to parse ISOstring to date format in moment js date and time are not coming properly.
This is my ISO string: '2016-04-27T18:30:00.000Z'
, I'm doing like this
moment('2014-02-27T18:30:00.000Z').format('YYYY-MM-DD HH:mm:ss');
I'm getting like this when running the above code "2014-02-28 00:00:00"
How to get the correct time?