为了统一期间最好使用Calendar对象获取时间。
// Date today = new Date();
// SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");
// String fileTime = format.format(today);
换成
Calendar cal = Calendar.getInstance();
String lastMonth = new SimpleDateFormat("yyyyMMdd").format(cal.getTime());