I have a date:
EventDate: "2018-10-10T00:00:00Z"
I run it through moment
:
let date = moment(event.EventDate).format("MM/DD/YYYY");
And I get the previous day:
date: 10/09/2018
What is happening?
EDIT:
This is not a duplicate; there is a specific answer on moment
that fixes the time zone issue.