Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile 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