Date( )日期格式Sun Sep 30 00:00:00 CST 2012转换成yyyy-mm-dd

Date date = new Date();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
String dt = simpleDateFormat.format(date);

猜你喜欢

转载自blog.csdn.net/sun337939896/article/details/79696063