Flattern Firestore Timestamp zum DateTime
DateTime.parse(timestamp.toDate().toString())
Dizzy Dotterel
DateTime.parse(timestamp.toDate().toString())
DateTime currentPhoneDate = DateTime.now(); //DateTime
Timestamp myTimeStamp = Timestamp.fromDate(currentPhoneDate); //To TimeStamp
DateTime myDateTime = myTimeStamp.toDate(); // TimeStamp to DateTime
print("current phone data is: $currentPhoneDate");
print("current phone data is: $myDateTime");
Timestamp time; //from firebase
DateTime.fromMicrosecondsSinceEpoch(time.microsecondsSinceEpoch)
new DateTime.now().millisecondsSinceEpoch;
Timestamp t = document['timeFieldName'];
DateTime d = t.toDate();
print(d.toString()); //2019-12-28 18:48:48.364
DateFormat.yMMMd().add_jm().format(myDateTime);