The easiest way to get the current date in the current locale (device language!):
String currentDate = DateFormat.getDateInstance().format(Calendar.getInstance().getTime());
If you want a date in different styles to use getDateInstance(int style):
DateFormat.getDateInstance(DateFormat.FULL).format(Calendar.getInstance().getTime());
: DateFormat.LONG, DateFormat.DATE_FIELD, DateFormat.DAY_OF_YEAR_FIELD .. ( CTRL + , )
:
String currentDateTime = DateFormat.getDateTimeInstance(DateFormat.DEFAULT,DateFormat.LONG).format(Calendar.getInstance().getTime());