/**
 * This file is part of yourPISD.
 *
 *  yourPISD is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  yourPISD is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with yourPISD.  If not, see <http://www.gnu.org/licenses/>.
 */

package app.sunstreak.yourpisd;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;

public class TermFinder {

	// TODO Hardcoded for 2013-2014 school year
	public enum Term {
		TERM_0 ("1st Six Weeks", "8/19/2013","10/2/2013"),
		TERM_1 ("2nd Six Weeks", "10/2/2013", "11/8/2013"),
		TERM_2 ("3rd Six Weeks", "11/8/2013", "12/20/2013"),
		TERM_3 ("1st Semester Exam", "12/20/2013", "1/7/2014"),
		TERM_4 ("4th Six Weeks", "1/7/2014", "2/22/2014"),
		TERM_5 ("5th Six Weeks", "2/22/2014", "4/18/2014"),
		TERM_6 ("6th Six Weeks", "4/18/2014", "6/6/2014"),
		TERM_7 ("2nd Semester Exam", "6/6/2014", "6/6/2014");
		
		public final String name;
		public Date startDate;
		public Date endDate;

		private Term (String name, String startDate, String endDate) {
			this.name = name;
			try {
				this.startDate = dfm.parse(startDate);
				this.endDate = dfm.parse(endDate);
			} catch (ParseException e) {
				e.printStackTrace();
			}
		}
	}
	
	public static final SimpleDateFormat dfm = new SimpleDateFormat("MM/dd/yyyy", Locale.getDefault());

	public static int getCurrentTermIndex() {
		
		Date d = Calendar.getInstance().getTime();
		
		for (int i = 0; i < Term.values().length; i++) {
			if (d.compareTo(Term.values()[i].startDate) >= 0 && d.compareTo(Term.values()[i].endDate) <= 0)
				return i;
		}
		
		return 0;
	}
	
}

@@ -986,27 +986,27 @@
  %228/
-19
+25
 /201
-3%22,%221
+4%22,%229/3
 0/
-2/
 201
-3
+4
 %22),%0A
@@ -1037,30 +1037,30 @@
 %22, %22
-10/2
+9/30
 /201
-3
+4
 %22, %2211/
-8
+5
 /201
-3
+4
 %22),%0A
@@ -1094,28 +1094,28 @@
 %2211/
-8
+5
 /201
-3
+4
 %22, %2212/
-20
+19
 /201
-3
+4
 %22),%0A
@@ -1153,27 +1153,27 @@
 %2212/
-20
+19
 /201
-3
+4
 %22, %221/
-7
+6
 /201
-4
+5
 %22),%0A
@@ -1206,27 +1206,27 @@
  %221/
-7
+6
 /201
-4
+5
 %22, %222/2
-2
+0
 /201
-4
+5
 %22),%0A
@@ -1260,27 +1260,27 @@
 %222/2
-2
+0
 /201
-4
+5
 %22, %224/1
-8
+7
 /201
-4
+5
 %22),%0A
@@ -1314,26 +1314,26 @@
 %224/1
-8
+7
 /201
-4
+5
 %22, %226/
-6
+5
 /201
-4
+5
 %22),%0A
@@ -1366,22 +1366,22 @@
 am%22, %226/
-6
+5
 /201
-4
+5
 %22, %226/6/
@@ -1383,17 +1383,17 @@
 %226/6/201
-4
+5
 %22);%0A%09%09%0A%09

Update TermFinder.java