aspose file tools*
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
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: 19762
    
  20

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: 39884
    
  28
The java.util.Date class has a deprecated constructor. That must be what they mean.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19762
    
  20

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: 39884
    
  28
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???