Currently, I format the date like that:
DateFormat timeFormat = android.text.format.DateFormat.getDateFormat(
MyApplication.getInstance().getApplicationContext());
String dateFormatted = timeFormat.format(dateTime.toDate());
The result is for example: "23-07-2016" (for french mobile); or "16-07-23" (for canadian mobile), etc.
In all cases, I want year is formatted on 2 digits: "23-07-2016" will become "23-07-16" "16-07-23" will stay the same ...
Ps: for information I use Yoda Date Time library.
How to do that please?