convert date to firestore timestamp flutter code example Example: flutter firestore timestamp to datetime DateTime.parse(timestamp.toDate().toString())