Created
July 20, 2011 11:37
-
-
Save marharrUK/1094804 to your computer and use it in GitHub Desktop.
formattedDate
This file contains hidden or 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 getFormattedDate(String date){ | |
| int dtLen = date.length(); | |
| String dtPart1 = date.substring(0, dtLen-5); | |
| String dtPart2 = date.substring(dtLen-5); | |
| return dtPart1.concat(dtPart2.replace(":", "")); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment