I need the help to query long collection with date range. See the below example document. I wanna query startTime field using date range.
You could store the datetime object as Unix time (seconds since 1 January 1970). Then you can simple use the where select like this:
collectionRef.where("startTime", ">=", "1506816000").where("startTime", "<=", "1507593600")
Btw - to convert from datetime to Unix time in your app, you can use the excellent library moment (if you are building something with js or node).