SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日 HH时mm分ss秒");
String dateString=sdf.format(new Date() );//获得日期
Java学习 - SimpleDateFormat
---- suffer now and live the rest of your life as a champion ----
popodynasty 2020-12-28 17:19 原文
SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日 HH时mm分ss秒");
String dateString=sdf.format(new Date() );//获得日期