I wanted to display dates for certain models in my views like “15 minutes ago.” I tried at first extending the HTML Helper, but I found it easier to just create a template.
@model DateTime
@{
TimeSpan timeSince = DateTime.Now.Subtract(Model);
}
@if (timeSince.TotalMilliseconds
Trending Articles
More Pages to Explore .....