I am trying to make use of this code
firebase.database().ref('posts').startAt(currenttime - 84000000)
To order my Recycleview to show post created within last 7 days.
If the 84000000 is the time in milliseconds how can I specify current time on java to be the current date?