I used the proposed way to format dates according to the user locale on Android as described in this ticket: Displaying dates in localized format on Android
However, is there any way to adapt the used format? In my case I wanted to adapt the formatting to show only 2 digits for the year.
//displays 4 digits for year
String dateF = android.text.format.DateFormat.getDateFormat(context).format(date);