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?

General Knowledge