ความคิด:
รับวันเริ่มต้นและสิ้นสุดของไตรมาสปัจจุบันและผลักดัน 3 เดือนตามวันที่ปัจจุบันเริ่มต้นและสิ้นสุดของไตรมาสสุดท้าย
/ *** @param Flag จริง: วันที่เริ่มต้น: สิ้นสุดวันที่* @return*/ สตริงคงที่ getLaStquarterTime (ธงบูลีน) ormat ("yyyy-mm-dd"); + 1; Curren && cur. 00:00 ");} else {ถ้า (currentMonth> = 1 && currentmonth <= 3) {calendar.set (ปฏิทิน. month, 2); calendar.date, 31); urrentmonth <= 6) {calendar.set ( Calendar.month, 5); ;} ถ้า (currentmonth> = 10 && currentmonth <= 12) {calendar.set (Calendar.month, 11); ) "23:59:59");} calendar.settime (ตอนนี้); catch (Exception E) {;} return resultDate;}