Created
October 18, 2019 10:39
-
-
Save trof808/1b37b324419f6a90c3ff03a1e1e73dd7 to your computer and use it in GitHub Desktop.
Parse timestamp into formated string
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
Timestamp timstamp = new Timestamp(); | |
SimpleDateFormat formatter = new SimpleDateFormat("dd.MM.yyyy"); | |
String parsedDate = formatter.format(new Date(timstamp.getTime())); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment