I am trying to find a way to get future dates and I'm stuck.
I am taking in a String which contains a set date
String myDate = "30/05/2003" (UK format)
How would I go about adding 3 weeks to this date to get:
myNewDate = "20/06/2003"
I also need to do the same for months. Again, I'm taking in the the date:
String myDate = "14/10/2003"
How would I add 3 months to this date to get:
myNewDate = "14/01/2004"
Please, any help would be *greatly* appreciated.
Rachel
I am taking in a String which contains a set date
String myDate = "30/05/2003" (UK format)
How would I go about adding 3 weeks to this date to get:
myNewDate = "20/06/2003"
I also need to do the same for months. Again, I'm taking in the the date:
String myDate = "14/10/2003"
How would I add 3 months to this date to get:
myNewDate = "14/01/2004"
Please, any help would be *greatly* appreciated.
Rachel