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

Calendar math

 
Jason Kwok
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

I was wondering if it's possible to subtract one date from another, to determine how many days have passed?

For example:
- Say I have an record of a user account created on February 22, 2006.
- Today is March 14, 2006.

How can I determine how many days old the account is?
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here are a couple of threads that discuss the topic.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic