日期格式(String-Data-String)

SimpleDateFormat formatter = new SimpleDateFormat("yyyy年MM月dd日");
SimpleDateFormat formatter2 = new SimpleDateFormat("yyyy-MM-dd");

String time = formatter.format(formatter2.parse("2016-04-21"));

time最后为"2016年04月21日"

原文地址:https://www.cnblogs.com/flord/p/5417984.html