50,523
社区成员
发帖
与我相关
我的任务
分享
try {
String paydate ="2011-12-30 11:35:22";
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date date = formatter.parse(paydate);
System.out.println(formatter.format(date));
} catch (ParseException e) {
assert false : "it should not reach here";
}