How to format correctly according to the device configuration date and time when having a year, month, day, hour and minute?
Use SimpleDateFormat
Like this:
event.putExtra("starttime", "12/18/2012"); SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy"); Date date = format.parse(bundle.getString("starttime"));