Take a look at the get(), getActualMaximum(), and set() methods. With them, you can get the day in month, get the last day in month, determine if day is last. And if so, get the last day in following month, and set it to that day.
Joined: Sep 12, 2009
thanks henry, will let you know if incase of any issues.