|
Java™ by example!
|
|
|
How do I do operations on dates?
Work on a Calendar instance. The following example subtracts 100 days from the current date, keeping track of months and years. Main.java:
outputs:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|