Skip to content

Instantly share code, notes, and snippets.

@marharrUK
Created July 20, 2011 11:37
Show Gist options
  • Select an option

  • Save marharrUK/1094804 to your computer and use it in GitHub Desktop.

Select an option

Save marharrUK/1094804 to your computer and use it in GitHub Desktop.
formattedDate
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