android java get current date

50

how to get system date in android -

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

Comments

Submit
0 Comments