I'm using the YearMonth
object of joda.time
, and want to get the last day of the month date in this object.
yearMonth.monthOfYear().getMaximumValue(); //return 12 as the maximum month value is =12
But what I want is the maximum day in that specific month? Eg 30 or 31 mostly. How can I get it?