I have two fields of type TimeOfDay in a model class, which is called startTime and endTime, how do i store this type into a firestore field, as a Timestamp somehow? What i want to achieve is to pick a time like start: 12:00 , end: 13:00 from a timepicker then store it to firestore, and then when reading from firestore i need the time to be of type DateTime, in the format of "12:00" in order to work with this in the weekday calendar widget where the start and end time properties is of type DateTime. Is this possible?
3
-
It sounds possible. I suggest giving it a try, and if it doesn't work, post the code along with a description of what it's doesn't work the way you expect.Doug Stevenson– Doug Stevenson2020-05-29 16:18:17 +00:00Commented May 29, 2020 at 16:18
-
Facing a similar issue. What did you implement?Haroon Ashraf Awan– Haroon Ashraf Awan2020-08-12 14:02:14 +00:00Commented Aug 12, 2020 at 14:02
-
Unfortunatly not, i got to abandon the project for other reasons, but would still know how this could be doneFluzzy– Fluzzy2020-08-14 06:17:24 +00:00Commented Aug 14, 2020 at 6:17
Add a comment
|