I am trying to get the next saturday from a given date. Forexample, if I have given the date 01/27/2010 then I want to get the next saturday which is 01/30/2010. Is this possible in Java?

Thanks

Printable View

- 01-27-2010, 05:26 PMsbekeleGetting the next saturday or sunday from a given date
I am trying to get the next saturday from a given date. Forexample, if I have given the date 01/27/2010 then I want to get the next saturday which is 01/30/2010. Is this possible in Java?

Thanks - 01-27-2010, 05:41 PMPhHein
Yes. Have a look at the Calendar API.

- 01-27-2010, 07:06 PMsbekele
Can you give me some idea how can I use the calendar API.

- 01-27-2010, 07:12 PMJosAH