Answers for "flutter covert firebase timestamp to date aND TIME"

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 "flutter covert firebase timestamp to date aND TIME"

Code answers related to "Dart"

Browse Popular Code Answers by Language