0

I have one app in MVC for editing Users in Database. I also have CreatedDate(when the user was created) but ofcourse it shows me Date and Time when it was Created, but I need it to show me how many days, hours, minutes it was ago.

So when I created user 2 hours ago, it will show me like 0 days 2 hours 0 minutes instead of 8.9.2015 13:48. I know I have to customize this in Model, but I dont really know how. Thanks for help, there is the model.

public DateTime? CreatedDate { get; set; }
shad0wec
  • 335
  • 1
  • 3
  • 15

0 Answers0