Answers for "how to get current time and convert it to unix flutter"

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
0

flutter timestamp to datetime

Map<String, dynamic> map = docSnapshot.data()!;
DateTime dt = (map['timestamp'] as Timestamp).toDate();
Posted by: Guest on October-28-2021

Code answers related to "how to get current time and convert it to unix flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language