Date Function
1 posts in topic
Flat View  Flat View

Posted By:   Blue_Milk
Posted On:   Tuesday, February 26, 2002 05:02 AM

is there anyway to get a specific date after a certain period of time.
for example, to get the current system date,
i have used this

Calendar calendar = Calendar.getInstance();
SimpleDateFormat sdf1 = new SimpleDateFormat("dd-MM-yyyy");
String date = sdf1.format(calendar.getTime());

This would return 26-02-2002.
Is there anyway to get the date when it is exactly 3 months later? I.E. 26-05-2002.

Re: Date Function

Posted By:   Bozidar_Dangubic  
Posted On:   Tuesday, February 26, 2002 06:43 AM

look into API. there are add() and other methods on the Calendar object you can use.
About | Sitemap | Contact