Android : Get current date and time from firebase
问题 I am developing a simple game where users get daily bonus.I want to get current date and time from firebase server as i don't want to rely on device time which could be manipulated. I went through ServerValue.TIMESTAMP in firebase but don't know how to use it.It returns a map with value as timestamp.How can i convert that timestamp into date.I want to get Today's date from firebase when ever user clicks on daily bonus. 回答1: Since Firebase Introduced Callable Functions you can use it in your