• Post Reply Bookmark Topic Watch Topic
  • New Topic

Identify the 'age' of a date  RSS feed

 
Knut Nilson
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to identify if, a DateInQuestion is 1 month, 2 month or older. I would appreciate any idea, since I am completly lost at the moment.
I guess I would need something like
Thanks for your feedback
 
Greg Brannon
Bartender
Posts: 563
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are allowed to use it, the Calendar class is very useful for simple and even more complex date arithmetic. You could set 2 dates, now and then for example, and then determine the difference in months between now and then.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!