I am using this query :
firebase.firestore().collection('questions')
.where('created', '>=', new Date(date[0]))
.where('created', '<=', new Date(date[1]))
Querying based on start date for eg : 20 nov
and end date for eg : 21 nov
for created field timestamp present in Firestore,if start date and end date is same it is not returning any data, and if start date is 20 Nov and end date 21 Nov it returns only a few data of 20 Nov, not all the data of 20 Nov data
SAME DATES : date[0] -> Wed Nov 20 2019 09:17:49 GMT+0530 (India Standard Time) date1 -> Wed Nov 20 2019 09:17:49 GMT+0530 (India Standard Time)
DIFF DATES date[0]- Wed Nov 20 2019 09:17:49 GMT+0530 (India Standard Time) date1 -Sat Nov 23 2019 09:17:49 GMT+0530 (India Standard Time)