How to format correctly according to the device configuration date and time when having a year, month, day, hour and minute?
I use SimpleDateFormat without custom pattern to get actual date and time from the system in the device's preselected format:
public static String getFormattedDate() {
//SimpleDateFormat called without pattern
return new SimpleDateFormat().format(Calendar.getInstance().getTime());
}
returns: