dart convert date code example
Example 1: dart convert string to datetime
var dateTime = DateTime.parse("dateTimeString");
Example 2: how to convert timestamp to datetime in dart
Timestamp time; //from firebase
DateTime.fromMicrosecondsSinceEpoch(time.microsecondsSinceEpoch)