Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
getting the date before curreny date
Posted by Ahu Eryuruk on June 18, 2001 at 8:03 AM
Hi, I have a class A and has members of String, fromDate, toDate. I want to write a new method as: void setDateInterval(int howManyDays){} In this method I would like to set the fromDate to toDate minus howManyDays. For example : toDate: 20010618 setDateInterval(36){...} then find what the fromDate equals to. Ofcourse this could be done with an algorithm but; is there any way of doing it with Java classes? Maybe, I would manage this with finding the Julian date of the toDate, does anyone know how to do it? Any help is appreciated... Regards, Ahu ERYURUK
Replies:
- Suggestion Steve Waldorrf June 18, 2001 at 10:04 AM
(0)
|