【java】字符串日期转换成中文格式日期

/**  
 * 字符串日期转换成中文格式日期  
 * @param date  字符串日期 yyyy-MM-dd  
 * @return  yyyy年MM月dd日  
 * @throws Exception  
 */  
public static String dateToCnDate(String date) {   
    String result = "";   
    String[]  cnDate = new String[]{"○","一","二","三","四","五","六","七","八","九"};   
    String ten = "十";   
    String[] dateStr = date.split("-");   
    for (int i=0; i

你可能感兴趣的:(【JAVA】,java,string,exception,date)