0
Q:

how to get system date in android

String currentDate = new SimpleDateFormat("dd-MM-yyyy", Locale.getDefault()).format(new Date());
2
String date = new SimpleDateFormat("yyyy-MM-dd", Locale.getDefault()).format(new Date());
0

New to Communities?

Join the community