Calendar cal = Calendar.getInstance(Locale.ENGLISH);
cal.setTimeInMillis(timestamp);
String date = DateFormat.format("dd-MM-yyyy hh:mm:ss", cal).toString();
Last active
May 29, 2021 15:37
-
-
Save WrathChaos/c30b7b267887df05c5736e6f5383f80a to your computer and use it in GitHub Desktop.
How to convert timestamp to formatted date on Android? Article: https://freakycoder.com/android-notes-45-how-to-convert-timestamp-to-formatted-date-d69848648e3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment