아이디어:
현재 분기의 시작 및 종료 날짜를 얻고 현재 날짜, 마지막 분기의 시작 및 끝을 기준으로 3 개월을 추진하십시오.
/ *** @param 플래그 : 시작 날짜 : return*/ public static string getLastQuarterTime ( "yyyy-mm-dd"); + 1; // 시작 날짜; if (currentmonth> = 1 && currentmonth <= 3); Curren. tmn <= 6) 캘린더 (calendar.month, 3); && cur. calendar.set (calendar.set) (calendar.date, 1); 00:00 ");} else {if (currentmonth> = 1 && currentmonth <= 3) {calendar.set (calendar.month, 2); calendar.date, 31); urrentmonth <= 6) {calendar.set ( Calendar.month, 5); Calendar.Date, 30); ;} else if (currentmonth> = 10 && currentmonth <= 12) {calendar.set.month, 11); ) + "23:59:59";} calendar.settime (now); // calendar.month, -3); Catch (예외 e) {;} return resultDate;}