Created
September 10, 2015 06:54
-
-
Save vishvendra01/fc65449ab40d8836184c to your computer and use it in GitHub Desktop.
convert time-stamp to date
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// convert time-stamp to date | |
Calendar cal = Calendar.getInstance(Locale.ENGLISH); | |
cal.setTimeInMillis(Long.valueOf(data.getDate())* 1000); | |
Log.d("dateinstamp", data.getDate()); | |
String date = DateFormat.format("dd-MM-yyyy", cal).toString(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment