How can I get the 15th and last day of the month in Joda time in a loop?
This is the code looks like:
DateTime initDate = new DateTime(2015,1,31,0,0);
for(int i = 0; i > 4; i++){
initDate = initDate.plusDays(15);
System.out.println(initDate.toString("yyyy-MM-dd");
}
I just want the result to be like this:
2015-2-15
2015-2-28
2015-3-15
2015-3-30