This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
If you look at the Javadoc for the Date class, it will tell you what is recommended instead.
Joanne
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35249
7
posted
0
It works just fine. Unless you need timezone support (which the Date class does not have), you can use the deprecated Date methods with no problems - they're not broken in the way other deprecated methods and classes are.
John Bartlett
Ranch Hand
Joined: Jan 25, 2006
Posts: 116
posted
0
Hey,
You are much better off using the Calendar Class as most of the Date class has been deprecated.
//gets the current date Calendar rightNow = Calendar.getInstance();