Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes Create Date Object with a past date Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Create Date Object with a past date

Giri Bjp
Greenhorn

Joined: Nov 30, 2008
Posts: 2
Hi,

How to create Date(java.util.Date) for a previous date(Ex Date object for 01/01/2007)

Thanks,
Girish
Wirianto Djunaidi
Ranch Hand

Joined: Mar 20, 2001
Posts: 195
Use java.util.Calendar
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32833
    
    4
"Giri Bjp" please read the important administrative private message I have just sent you.

CR
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32833
    
    4
Please don't ask the same question twice. Closing thread.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Create Date Object with a past date
 
Similar Threads
Question on Creation of a Date Object
Unable to get Date instance in a particular format
Prepared statement's 'setDate' method
Date Query
convert a String to a Date