标签:
Calendar cal = Calendar.getInstance();
cal.add(Calendar.DATE, -1);
String yesterday = new SimpleDateFormat( "yyyy-MM-dd ").format(cal.getTime());
System.out.println(yesterday);
标签:
原文地址:http://www.cnblogs.com/zhaoleigege/p/5501949.html