I am currently using Moment js to parse an ISO 8601 string into date and time, but it is not working properly. What am I doing wrong? And I would take any other easier solut
There's two parts to the moment operation: reading the date/time in, and spitting it back out. You've got the first part:
moment("2011-04-11T10:20:30Z")
but then you need to call an output function, eg:
moment("2011-04-11T10:20:30Z").format('YYYY-MM-DD h:mm:ss a')