'[Resolved ]how to convert date format dd/mm/yyyy to firestore timestamp format in order to send a query based on date given?
I need help to convert my date given dd/MM/yyyy to firestore timestamp format in order to be able to send a firestore query to fetch all row from collection
Date to send is dd/MM/yyyy "24/05/2022"
firestore date

Firestore query :
fStore.collection("data").whereEqualTo("ID", userId).whereGreaterThanOrEqualTo("date", "24/05/2022").get().addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {}
I am expected to get one row only as i have only one row of data which date is May 25,2022
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
