فكرة:
احصل على تاريخ البدء والنهاية للربع الحالي ، وادفع 3 أشهر على أساس التاريخ الحالي ، بداية ونهاية الربع الأخير
/ *** param true: تاريخ البدء ؛ + 1 ؛ Curren. && cur. 00:00 ") ؛} آخر {if (currentmonth> = 1 && currentmonth <= 3) {calendar.set (calendar.month ، 2) ؛ calendar.date ، 31) ؛ urrentMonth <= 6) {calendar.set ( Calendar.month ، 5) ؛ ؛} if (currentmonth> = 10 && currentmonth <= 12) {calendar.set (calendar.month ، 11) ؛ ) + "23:59:59") ؛} Calendar.Settime (الآن) ؛ catch (استثناء e) {؛} return resultdate ؛}