Created
February 24, 2011 19:13
-
-
Save rosswarren/842692 to your computer and use it in GitHub Desktop.
Converts Date in Long format to Human readable
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
Date date = new Date(); | |
date.setTime(--long here--); | |
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd-hh.mm.ss"); | |
String formattedDate = formatter.format(date); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment