I am trying to get to and from date where ToDate will have previous date and FromDate will have first date of the current month. For January it wou
ToDate
FromDate
Joda Time
If I am understanding the question correctly, it can be done very easily by using joda time
LocalDate fromDate = new LocalDate().withDayOfMonth(1); LocalDate toDate = new LocalDate().minusDays(1);