«« Next » « Previous
«« Next » « Previous

Link Details

You do understand how this works, don't you? Login and vote now.
Link 79041 thumbnail

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.
  • 5
  • 7
  • 1738
  • 631

Comments

Add your comment
User 236137 avatar

dzonelurker replied ago:

0 votes Vote down Vote up Reply

Refactoring hint: In those 6-liner examples 3 lines are (almost) the same

User 210175 avatar

jtheory replied ago:

0 votes Vote down Vote up Reply

Simple examples of using Calendar.add().

User 281050 avatar

cbang replied ago:

0 votes Vote down Vote up Reply

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!

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (5)



Voters Against This Link (7)