Skip to content

Instantly share code, notes, and snippets.

@manjurulhoque
Created November 5, 2018 12:38
Show Gist options
  • Save manjurulhoque/4ddea5417aa7977e8e0541fae10b3b5b to your computer and use it in GitHub Desktop.
Save manjurulhoque/4ddea5417aa7977e8e0541fae10b3b5b to your computer and use it in GitHub Desktop.
public static String getDate(long time) {
Calendar cal = Calendar.getInstance(Locale.ENGLISH);
cal.setTimeInMillis(time);
return DateFormat.format("EEE, dd/MM/yyyy", cal).toString(); // EEE is for day of the week
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment