SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
//String startTime = df.format(new Date().getTime()-14*24*60*60*1000);
//String endTime = df.format(new Date().getTime()-24*60*60*1000);
 
 
//获取当前时间的时间戳
String opencard_time = String.valueOf(System.currentTimeMillis());
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
//一年后
calendar.add(Calendar.YEAR, 1);
// 5年后的10天前
//c.add(Calendar.YEAR, 5);
//c.add(Calendar.DATE, -10);
date = calendar.getTime();
String expiry_time =String.valueOf(date.getTime());
 
Date date = new Date();
DateFormat dateFormat1 = new SimpleDateFormat("yyyy-MM-dd");
Date myDate1 = null;
Date myDate2 = null;
try {
//结婚纪念日
myDate1 = dateFormat1.parse("2009-06-01");
//生日
myDate2 = dateFormat1.parse("1998-08-01");
} catch (ParseException e) {
e.printStackTrace();
}
String marry_date = String.valueOf(myDate1.getTime());
//获取当前时间的时间戳
String opencard_time = String.valueOf(System.currentTimeMillis());//开卡时间
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
calendar.add(Calendar.YEAR, 1);
date = calendar.getTime();
String expiry_time =String.valueOf(date.getTime());
String birthday = String.valueOf(myDate2.getTime());