i have made an application in which i need to perform date conversion in 24 hour format. Here is my code.
GregorianCalendar c = new GregorianCalendar(Locale.
String cdate = (String) DateFormat.format("yyyy-MM-dd kk:mm:ss", c.getTime());