Share:
Notifications
Clear all

Calculate relative time in C#

1 Posts
1 Users
0 Reactions
773 Views
(@codemaster)
Posts: 4
New Member
Topic starter
 

Given a specific DateTime value, how do I display relative time, like:

  • 2 hours ago
  • 3 days ago
  • a month ago
 
Posted : 11/06/2024 8:02 am
Share: