How can i get the Current time from firestore Database . Even if the system time is changed or incorrect in User's phone . I know how to add the timestamp field in firestore (models class)
private @ServerTimestamp
Date timestamp;"
But how can i get the current time from firestore as vice versa have tried this
Log.d(TAG, "onSuccess: TimerFIres:" + FieldValue.serverTimestamp());
But my output was :
onSuccess: TimerFIres:com.google.firebase.firestore.FieldValue$ServerTimestampFieldValue@41f2cd1
Can anyone help me with this! thanks.