in my Android application, i am taking date and time from database. but i am not able to get the date in the \"Date\" Format from the database into my application, the date
Try this code:
Calendar c = Calendar.getInstance(); System.out.println("Current time => " + c.getTime()); SimpleDateFormat df = new SimpleDateFormat("dd-MMMM"); formattedDate = df.format(c.getTime());