This is data at firebase
i want to get future data like this:
ref.where("startTime", ">", new Date()))
but it isn’t working
i try this:
ref.where("startTime.seconds", ">", Date.now() / 1000))
but it still doesn’t. i have no idea for this.
2
const startfulldate = firestore.Timestamp.fromDate(new Date()); ref.where("startTime", ">", startfulldate)
It's working. :)
you can try with this
ref().child("Users").orderByChild('startTime').startAt("2022-01-05").endAt("2029-01-10");
Click here to cancel reply.
2
Answers
It's working. :)
you can try with this