calendar.getTimeInMillis()取得的毫秒时间转化为yyyy-MM-dd样式的时间

String str = String.format("%tF %<tT", 1229159619623L);

猜你喜欢

转载自dongxylove.iteye.com/blog/2293120