Forums Register Login

Date Conversion

+Pie Number of slices to send: Send
Dear Frinds !!

I have a date in dd/mm/yy format.I need to add one year to this date and have to subtract one day.

Im greatful if you post your views/sugestions.

Thanks in advance,
Josweth Reddy T
+Pie Number of slices to send: Send
Look at the class java.text.SimpleDateFormat for parsing a String to a Date or formatting a Date to a String.

Look at java.util.Calendar for doing calculations with dates (like adding a year, subtracting a day etc.).

(This question doesn't belong in the "Advanced Java" forum).
I like tacos! And this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 870 times.
Similar Threads
sql date and time - how I construct one date out of them?
Getting error while inserting data into table
comparision between two dates
add one day to current date
future date validation
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 04:50:57.