tia_kamakshi
asked on
Adding 15 min to current time in java
Hi,
I am working in java
I want to add 15 minutes to current time
How do we do that
Please guide
Many Thanks
I am working in java
I want to add 15 minutes to current time
How do we do that
Please guide
Many Thanks
Date fifteenLater = new Date(System.currentTimeMil llis() + (100*60*60*15));
Oops - typo
Date fifteenLater = new Date(System.currentTimeMilllis() + (1000*60*60*15));
... and get rid of the extra 'l' in Millis ;-)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Many Thanks
:-)