Question: how to set date format dd-mm-yyyy in android?
Answer: SimpleDateFormat dateFormat = new SimpleDateFormat(“yyyy-MM-dd HH:mm:ss. SSS”); Date sourceDate = null; try { sourceDate = dateFormat. parse(sourcedatevalue); } catch (ParseException e) { e.