0

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. Commented May 29, 2020 at 16:18
  • Facing a similar issue. What did you implement? Commented 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 done Commented Aug 14, 2020 at 6:17

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.