我建议为此使用两个SimpleDateFormat对象。
Date date = new SimpleDateFormat("ddMMyy").parse( dateString);String result = new SimpleDateFormat("dd:MM:yy").format( date );有关格式,请参见文档:http
:
//docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html

我建议为此使用两个SimpleDateFormat对象。
Date date = new SimpleDateFormat("ddMMyy").parse( dateString);String result = new SimpleDateFormat("dd:MM:yy").format( date );有关格式,请参见文档:http
:
//docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html