How to format correctly according to the device configuration date and time when having a year, month, day, hour and minute?
This code would return the current date and time:
public String getCurrDate() { String dt; Date cal = Calendar.getInstance().getTime(); dt = cal.toLocaleString(); return dt; }