SimpleDateFormat ormater = new SimpleDateFormat("yyyy-MM-dd");
Date date=new Date();

String d = String.valueOf(ormater.format(date));

相关文章: