Match a date in subcollection to current date

Troubleshooting

I have a subcollection with a date field (stored in DateTime), and an int field.

I would like to display the int of the document that has a matching date to the current date.

This proved harder than expected (or I'm missing something super easy).

How would the pros go about this? Thanks for the help ๐Ÿ™‚

What have you tried so far?


- I tried matching the date directly, but flutter can't compare two datetimes.
- I tried converting the date to a string, and creating a custom action to turn the current date to a yyy-mm-dd string on page load. However, the db query to fetch the correct document executes before the page load action, and it fails.

Did you check FlutterFlow's Documentation for this topic?
No
2
8 replies