0

I am making MovieList App. Store all the data of movie in Firebase. Now i want to store the current time in firebase when new node of movie is created. And then in MovieList, I want to display the difference between tim like '1 minute ago' or '1 day ago' etc..

The main point is i want the difference between those two times. Can anyone help to acheive this.Thanx

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
MissAmna
  • 317
  • 5
  • 13
  • Have a look at this answer https://stackoverflow.com/questions/36658833/firebase-servervalue-timestamp-in-java-data-models-objects – Ivan Wooll Mar 04 '18 at 10:19
  • In addition, i want the difference between that time and current time to display in cardview with that specific movie. – MissAmna Mar 04 '18 at 11:41

0 Answers0