I would like to change this date time format using momentjs
2017-02-01T00:00:00.000Z
to
02-2017 ( month-year )
How to change this date format to get month-year only using momentjs?
I have tried like this:
var MnthYr = moment(2017-02-01T00:00:00.000Z).format("MM-YYYY");
but I didn't get exact answer