How to format correctly according to the device configuration date and time when having a year, month, day, hour and minute?
It's too late but it may help to someone
DateFormat.format(format, timeInMillis);
here format is what format you need
format
ex: "HH:mm" returns 15:30