ProAnswers.org

How do I calculate relative Time?

how do I display relative time for a specific DateTime value, such as

2 hours ago
4 days ago
a month ago
etc, etc…?

Question is not clear. pls specify details such as programming language, platform, etc

I want to do this in C#. If you have any idea then please tell me.
Thanks!!