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 Help with Date class 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 "Help with Date class" Watch "Help with Date class" New topic
Author

Help with Date class

Judy Thompson
Greenhorn

Joined: Apr 02, 2004
Posts: 2
I am trying to Debug a program that uses 3 deprecated Date functions (getMonth, getDay, getYear). Any suggestions on what to replace them with???
Thanks.......
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Hi Judy,
Welcome to JavaRanch!
Date is deprecated in favor of java.util.Calendar. Calendar is, unfortunately, a little more complex to use, but not horribly so.


[Jess in Action][AskingGoodQuestions]
Judy Thompson
Greenhorn

Joined: Apr 02, 2004
Posts: 2
Thanks so much..........I'll give those a try!!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Help with Date class
 
Similar Threads
about dataBase books
WA #1.....word association
How can I get sysdate in java?
Head First Design Patterns Release Date
Another format check :P