BIRT 3.7
Written by: Michael Williams
Featured Refcardz: Top Refcardz:
  1. Scrum
  2. Apache Maven 2
  3. Essential MySQL
  4. Node.js
  5. Groovy
  1. jQuery Selectors
  2. Ajax
  3. Java
  4. Spring Config.
  5. Java Concurrency

Link Details

Link 79041 thumbnail
User 111696 avatar

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
  • 2867
  • 2

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)