0

How to get these details:

these details

I have tried to get this by following method

FirebaseAuth firebaseAuth = FirebaseAuth.getInstance();
long joineDate = firebaseAuth.getCurrentUser().getMetadata().getCreationTimestamp();
String joined_on_date = String.valueOf(joineDate);
joined_on.setText(joined_on_date);

But that looks like this:

like this

So how to display it in date format

No the question linked doesent answer my question when I get those date from firebase it shows some random numbers which I dont know in which form it is.

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
  • The "random numbers" are actually the number of milliseconds that have passed since January 1, 1970, commonly referred to as epoch time. If you pass it into `new Date` (as the accepted answer in the question Zoe linked), then you'll have a standard date. – Frank van Puffelen Apr 04 '21 at 15:11
  • Ok thanks I will try my best! –  Apr 04 '21 at 18:45

0 Answers0