aspose file tools*
The moose likes Beginning Java and the fly likes java.util.Date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java.util.Date" Watch "java.util.Date" New topic
Author

java.util.Date

Marie Mazerolle
Ranch Hand

Joined: Oct 01, 2002
Posts: 81
With so many of its methods deprecated, what should this class be used for? Should I use it at all, or use SimpleDateFormat, Calendar and GregorianCalendar?
Thanks,
Marie
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Yes, Calendar and friends were intended to supplant Date. You ought to use Calendar for new development; use Date mostly just for backward compatibility with older code.


[Jess in Action][AskingGoodQuestions]
Marie Mazerolle
Ranch Hand

Joined: Oct 01, 2002
Posts: 81
Thanks, Ernest!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.util.Date