I save the Map showen below to a firestore, but I want to save also a timestamp which should have the time and date a user picked with a date and time picker. The date is already in 'dd.MM.yyyy' formatted and the time is something like '6:58 PM'. The date is the variable date and the time is the variable time. How can I save a timestamp with the value time and date?
Map<String, dynamic> data = {
'name': userName,
'userUID': userUIDglobal,
'time: '//here I want to safe the timestamp
};
Firestore.instance
.collection('seller')
.document(documentID)
.collection('test')
.add(data);
}