- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
private String rollDate(){
Date date = new Date();
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
for(int y=0; y<30; y++){
calendar.roll(Calendar.DATE, false);
if( calendar.get(Calendar.DAY_OF_MONTH) == 1 ) {
if (calendar.get(Calendar.MONTH) == Calendar.JANUARY) {
calendar.roll(Calendar.MONTH, false);
calendar.roll(Calendar.YEAR, false);
}else{
calendar.roll(Calendar.MONTH, false);
}
}
}
return isida.misc.DateFilter.format(calendar.getTime(), "yyyy.MM.dd");
}