wood burning stoves 2.0*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 19541
    
  16

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

Joined: Oct 27, 2005
Posts: 19541
    
  16

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: 36478
    
  16
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
date class related question
can we use ThreadPoolExecutor inside mothod doPost to increase the performance?
deprecated method
Current date - 10
Enterprise application: handling date and time