This question already has an answer here:
Has java any function where I have a String with a date in this form : ddMMyy
or dd.MM.yy
and I want to convert it in another format like: dd:MM:yy
This question already has an answer here:
Has java any function where I have a String with a date in this form : ddMMyy
or dd.MM.yy
and I want to convert it in another format like: dd:MM:yy
I would suggest using two SimpleDateFormat objects for this.
For the format, see the documentation: http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html