• Post Reply Bookmark Topic Watch Topic
  • New Topic

compare Date  RSS feed

 
Raj Ohadi
Ranch Hand
Posts: 316
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Give a variable of java.util.Date type, how do I quickly compare if it is 5 days away later than or earlier than today ?
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the API for the java.util.Calendar class, particularly the add method.
[ March 24, 2008: Message edited by: Merrill Higginson ]
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!