This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with Date class

 
Judy Thompson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Judy Thompson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks so much..........I'll give those a try!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic