I have a string with this value, for example: \"20130211154717\" I want it to be like \"2013-02-11 15:47:17\". How can I do that?
You can use the substring() method to get what you want:
substring()
String data = "20130211154717"; String year = data.substring(0, 4); String month = data.substring(4, 2); // etc.
and then string them together:
String formatted = year + "-" + month + "-" + . . .