Skip to content

Instantly share code, notes, and snippets.

@thanhcs94
Created May 1, 2017 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thanhcs94/24f61c63449d9cb92ae4e0fcdb7fb9a7 to your computer and use it in GitHub Desktop.
Save thanhcs94/24f61c63449d9cb92ae4e0fcdb7fb9a7 to your computer and use it in GitHub Desktop.
convertToHumanReadableDate
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