I am making a social media app in which user posts data on firebase, now I want to retrieve all the data from firebase that was posted on current date, below is my firebase database structure
I'm posting the timerstamp too, but I don't know how to retrieve the data according to the current date.
This is my code segment for getting timerstamp value but I'm unable to get the value:
mDatabase= FirebaseDatabase.getInstance().getReference().child("Profiles");
mQuery=mDatabase.orderByChild("timerstamp").startAt(ServerValue.TIMESTAMP);
but ServerValue.TIMESTAMP is red underlined, and when I typecast it to string the query is getting null.