Created
May 1, 2017 13:23
-
-
Save thanhcs94/24f61c63449d9cb92ae4e0fcdb7fb9a7 to your computer and use it in GitHub Desktop.
convertToHumanReadableDate
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
public static String convertToHumanReadableDate(String timestamp) { | |
SimpleDateFormat fmtOut = new SimpleDateFormat(); | |
return fmtOut.format(new Date(Long.valueOf(timestamp))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment