apparition
asked on
Use java.sql.Timestamp
I am calling two functions in an object that recieve a Timestamp. The first function I need to pass current time and the next one i need to pass a date 30 days in the future.
For example :
obj.setStartDate(currentTi meStamp)
obj.setEndDate(futureTimeS tamp)
how do i get the values in "currentTimeStamp" and "futureTimeStamp"
For example :
obj.setStartDate(currentTi
obj.setEndDate(futureTimeS
how do i get the values in "currentTimeStamp" and "futureTimeStamp"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Just FYI, "System.out.println(future TimeStamp) ;" isn't necessary for converting the date, just some test code.
Derek
Derek
new Timestamp(new Date().getTime())