This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes People suggest using Date class is deprecated, then for handling Date which class should be used??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "People suggest using Date class is deprecated, then for handling Date which class should be used???" Watch "People suggest using Date class is deprecated, then for handling Date which class should be used???" New topic
Author

People suggest using Date class is deprecated, then for handling Date which class should be used???

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
People suggest using Date class is deprecated, then for handling Date which class should be used???
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19656
    
  18

People who say this are Joda Time users.

Date (and Calendar) are not deprecated at all, but some say that Joda Time is easier to use. I can't confirm since Date and Calendar have always done what I needed.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38075
    
  22
The java.util.Date class has a deprecated constructor. That must be what they mean.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19656
    
  18

Ah yes, and almost all of its getter / setter methods are deprecated. Calendar should be used for that. So not but Also, not but
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Us JodaTime users don't say they're deprecated, just that they're heinous ;)
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38075
    
  22
David Newton wrote:Us JodaTime users don't say they're deprecated, just that they're heinous ;)
Probably a more accurate quote :wink:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: People suggest using Date class is deprecated, then for handling Date which class should be used???
 
Similar Threads
Current date - 10
date class related question
deprecated method
can we use ThreadPoolExecutor inside mothod doPost to increase the performance?
Enterprise application: handling date and time