Ideia:
Obtenha a data de início e término do trimestre atual e empurre 3 meses com base na data atual, no início e no final do último trimestre
/ *** @param sinalizador TRUE: Data de início; + 1; Curren. && curs. 00:00 ");} else {if (currentmonth> = 1 && Currentmonth <= 3) {calendar.set (calendar.month, 2); calendar.date, 31); urrentmonth <= 6) {calendar.set ( Calendário.month, 5); ;} Else if (currentmonth> = 10 && CurrentMonth <= 12) {calendar.set (calendário.month, 11); ) + "23:59:59");} calendar.settime (agora); Catch (Exceção e) {;} Retornar ResultDate;}