Playing with DATE in java

Seeing many novice getting stuck working with Java Date, I prepared a single file, with all basic possibilities to manipulate a Date instance. Here you will figure out the similarities and the difference in manipulating the java.sql.Date and java.util.Date instances. Hoping that this would help my readers as well, following is the java code for the same.

The output screen looks something like:


Kindly put in your queries as comment to this post.

Receive our updates to your inbox

Get more stuff like this
in your inbox

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.