You do understand how this works, don't you? Login and vote now.
By bloid
via hiteshagrawal.com
Published: May 05 2008 / 17:07
I had an requirement on date manipulation in Java and i had a very hard time searching on google. Finally i came to know on how to manipulate dates in Java and with this article i will be showing code snippets on the same. This code snippets is applicable in Core Java, JSP and Servlet Pages.
Comments
dzonelurker replied ago:
Refactoring hint: In those 6-liner examples 3 lines are (almost) the same
jtheory replied ago:
Simple examples of using Calendar.add().
cbang replied ago:
Before developing a headache over java.util.Date deprecation and java.util.Calendar inconsistencies, or start putting together your own DateUtils like we've all done numerous times, do yourself the favor and check out Joda time. How I wish I had known about this one the first years of my Java career!
Voters For This Link (5)
Voters Against This Link (7)