How to Display Current Date in format in android ?

Current Date In Fix Format  : -

Date c = Calendar.getInstance().getTime();
SimpleDateFormat df = new SimpleDateFormat("dd-MMM-yyyy");
String formattedDate = df.format(c);


Comments

Popular posts from this blog

How to Fix ‘This file name is too long’ Error?

How to change searchview property to change searchview design

Library To Load Html Content In Android TextView in Android