Parse from timestamp

183

Use DateTime.tryParse(). It will return null if the input can’t be parsed to a datetime object. But the format you receive should be fine.

Share:
183
Uwe Keim
Author by

Uwe Keim

German developer. Some of my apps: SharePoint Systemhaus Göppingen (zwischen Stuttgart und Ulm) Eigene Homepage erstellen Test Management Software Windows 10 Ereignisanzeige Very proud father of Felix (2012) and Ina (2014). Loves running, climbing and Indian food. Code Project member #234.

Updated on November 19, 2022

Comments

  • Uwe Keim
    Uwe Keim over 1 year

    I am trying to parse data and time from an API about a certain Schedule, the response I'm getting is of the form " 2019-10-09T13:00:00.000Z " and " 2019-10-09T14:30:00.000Z ".

    How to obtain the date and time from this in Dart?