title: How to parse date time in flutter
body: <p>I getting below date time from server</p>
  <pre><code>   &quot;datetime&quot;:&quot;2020-07-17T03:18:31.177769-04:00&quot;
  </code></pre>
  <p>and I'm using below code to parse to get time from above date</p>
  <pre><code>      var format = DateFormat('HH:mm a');
        debugPrint('LocalTime ${format.parse(timeZoneData.datetime)}');
  </code></pre>
  <p>I'm getting below exception</p>
  <pre><code>flutter: Error 123: FormatException: Trying to read : from 2020-07-17T03:22:09.959577-04:00 at position 5
  </code></pre>
  <p>and i want display the above time like this <strong>3:18 AM</strong></p>
  <p>Can anybody know how can parse date time in flutter</p>
  <p>If need more information please do let me know. Thanks in advance. Your efforts will be appreciated.</p>