Hello.
I'm trying to do something quite simple. I have a date that I want to add a month to.
So for 21/9/2004, add 1 month to get 21/10/2004.
My concern is with the year changing. So for 16/12/2004 I want to get 16/1/2005, not 16/13/2004.
I'm sure that there is some class available that does this, my guess is somewhere in java.util.calendar, but I can't quite get it.
One last thing, I need this to work for UK date formats (dd/mm/yyyy).
I don't do much Java programming, so it's all a bit fuzzy. Any help would be greatly appreciated. Thanks!
I'm trying to do something quite simple. I have a date that I want to add a month to.
So for 21/9/2004, add 1 month to get 21/10/2004.
My concern is with the year changing. So for 16/12/2004 I want to get 16/1/2005, not 16/13/2004.
I'm sure that there is some class available that does this, my guess is somewhere in java.util.calendar, but I can't quite get it.
One last thing, I need this to work for UK date formats (dd/mm/yyyy).
I don't do much Java programming, so it's all a bit fuzzy. Any help would be greatly appreciated. Thanks!