puchu
0
Q:

android studio get time

String currentDate = new SimpleDateFormat("dd-MM-yyyy", Locale.getDefault()).format(new Date());
2
String currentTime = new SimpleDateFormat("HH:mm:ss", Locale.getDefault()).format(new Date());
1

New to Communities?

Join the community