SyntaxFix
Write A Post
Hire A Developer
Questions
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);