How do I get the first day of the next month in Joda?

This example will give you the first day of the next month from the current system date. In the example we use the MutableDateTime class. We add 1 month from the current date using the addMonths() method. Next we set the day of the month to the first day using the setDayOfMonth() method. To make sure it is the first day we set the time to midnight by calling the setMillisOfDay() method.

Here is an example result of the program: