Calendar ci = Calendar.getInstance(); CiDateTime = \"\" + (ci.get(Calendar.MONTH) + 1) + \"/\" + ci.get(Calendar.DAY_OF_MONTH) + \"/\" + ci.get(Calendar.
public static final String TIME_FORMAT = "hh:mm aa"; SimpleDateFormat TimeFormat = new SimpleDateFormat(TIME_FORMAT); Calendar ATime = Calendar.getInstance(); String Timein12hourFormat = TimeFormat.format(ATime.getTime());