If its fixed length, you could use something as simple as:String oldDate = "11022004";String newString = oldDate.substring(0, 2) + "/" +oldDate.substring(2, 4) + "/" + oldDate.substring(4);