Answers for "convert firebase unix timestamp to Datetime flutter"

2

flutter firestore timestamp to datetime

DateTime.parse(timestamp.toDate().toString())
Posted by: Guest on November-06-2020
0

flutter timestamp to datetime

Timestamp t = document['timeFieldName'];
DateTime d = t.toDate();
print(d.toString()); //2019-12-28 18:48:48.364
Posted by: Guest on October-28-2021

Code answers related to "convert firebase unix timestamp to Datetime flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language