Answers for "timestamp from string dart"

3

dart timestamp

void main() {
  print(new DateTime.now().millisecondsSinceEpoch);
}
Posted by: Guest on July-29-2020
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 "Dart"

Browse Popular Code Answers by Language