How to parse ISO 8601 into date and time format using Moment js in Javascript? : <p>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 solutions as well. </p>

<p>The ISO 8601 I would like to parse: <code>"2011-04-11T10:20:30Z"</code> into date in string: <code>"2011-04-11"</code> and time in string: <code>"10:20:30"</code></p>

<p>And tried <code>console.log(moment("2011-04-11T10:20:30Z" ,moment.ISO_8601))</code> and <code>console.log(moment("2011-04-11T10:20:30Z" , ["YYYY",moment.ISO_8601])</code> as a test, but it just returns an object with all different kinds of properties. </p>
