close

int n= 5;//取得5天前的日期 

Calendar cal = Calendar.getInstance();
long time = cal.getTimeInMillis() - (long)n * 24L * 60L * 60L * 1000L;
cal.setTimeInMillis(time);
return DateUtil.getDate(cal, "yyyymmdd");


arrow
arrow
    全站熱搜

    jordenno 發表在 痞客邦 留言(0) 人氣()