Given a specific DateTime value, how do I display relative time, like:
DateTime
If you want to have an output like "2 days, 4 hours and 12 minutes ago", you need a timespan:
"2 days, 4 hours and 12 minutes ago"
TimeSpan timeDiff = DateTime.Now-CreatedDate;
Then you can access the values you like:
timeDiff.Days timeDiff.Hours
etc...