I want to calculate the start date of the last month. I have referred this post and I have written the snippet as follows:
Calendar calendar = getCalendar(new Date());
calendar.set(Calendar.DAY_OF_MONTH-1,
calendar.getActualMinimum(DAY_OF_MONTH));
calendar = getTimeToBeginningOfDay(calendar);
return calendar.getTime();
With this I'm able to get the Date before the end of the last month. Help me get the start date of Any help would be appreciated.