'How to store List<DateTime> in variable from firestore all single field time stampdata in flutter?
how to get firestore single field time stamp data to store in a List variable to use in somewhere else that need List?
DocumentReference documentReference =
FirebaseFirestore.instance.collection('crud').doc();
documentReference.get().then((dataSnapshot) {
// Map<String, dynamic> documentFields = snapshot.data.data;
List<DateTime> dateStamp = (dataSnapshot.data()['bookDate'].toDate());
return dateStamp;
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
