Given a specific DateTime value , how do I display relative time, like: 1 hours ago 3 days ago 2 month ago 3 year ago
use following code:
use above method like this:
thanks, i hope it will help for you.