How to format correctly according to the device configuration date and time when having a year, month, day, hour and minute?
Use build in Time class!
Time time = new Time(); time.set(0, 0, 17, 4, 5, 1999); Log.i("DateTime", time.format("%d.%m.%Y %H:%M:%S"));