print(hoursRanges[selectedHourRangeIndex!]); //output: 09.00 - 11.00
it separates the dots when I want to update the value
2
enter image description here
its my firestore document structure I solved it by changing it like this 09.00 - 11.00 => 09:00 - 11:00
Try:
await FirebaseFirestore.instance .collection("staff") .doc(data.email) .collection("archive) .doc(inputs.date.substring(0.10)) .update({ "${hoursRanges[selectedRangeIndex!]}": true});
Click here to cancel reply.
2
Answers
enter image description here
its my firestore document structure I solved it by changing it like this 09.00 - 11.00 => 09:00 - 11:00
Try: