|
@ -306,9 +306,19 @@ public class Constant {
|
|
|
String startDateString = (1900 + today.getYear()) + "-07-01";
|
|
|
Date startDate = simpleDateFormat.parse(startDateString);
|
|
|
if (simpleDateFormat.parse(todayString).after(startDate)) {
|
|
|
return (1900 + today.getYear()) + "-06-30";
|
|
|
Integer year = (1900 + today.getYear());
|
|
|
if (year == 2016) {
|
|
|
return "2015-06-30";
|
|
|
} else {
|
|
|
return year+ "-06-30";
|
|
|
}
|
|
|
} else {
|
|
|
return (1900 + today.getYear() - 1) + "-06-30";
|
|
|
Integer year = (1900 + today.getYear() - 1);
|
|
|
if (year == 2016) {
|
|
|
return "2015-06-30";
|
|
|
} else {
|
|
|
return year+ "-06-30";
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -321,9 +331,19 @@ public class Constant {
|
|
|
String startDateString = (1900 + today.getYear()) + "-07-01";
|
|
|
Date startDate = simpleDateFormat.parse(startDateString);
|
|
|
if (simpleDateFormat.parse(todayString).after(startDate)) {
|
|
|
return (1900 + today.getYear()) + "";
|
|
|
Integer year = (1900 + today.getYear());
|
|
|
if (year == 2016) {
|
|
|
return "2015-06-30";
|
|
|
} else {
|
|
|
return year+ "-06-30";
|
|
|
}
|
|
|
} else {
|
|
|
return (1900 + today.getYear() - 1) + "";
|
|
|
Integer year = (1900 + today.getYear() - 1);
|
|
|
if (year == 2016) {
|
|
|
return "2015-06-30";
|
|
|
} else {
|
|
|
return year+ "-06-30";
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|