Possible Duplicate:
How do I calculate relative time?
Is there anything similar to rails’ time_ago_in_words helper for asp.net MVC?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Depending on your intended output target, the jQuery plugin Timeago may be a better option.
Here’s an HtmlHelper to create an
<abbr />element containing an ISO 8601 timestamp:Combine the above helper’s output with the following JavaScript somewhere on your page and you’ll be in the money.