Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

added 6 characters in body
Source Link

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

  • 2 hours ago2 hours ago
  • 3 days ago3 days ago
  • a month agoa month ago

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

  • 2 hours ago
  • 3 days ago
  • a month ago

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

  • 2 hours ago
  • 3 days ago
  • a month ago
this problem is also belongs to time
Link
edited title
Link

How can Calculate relative time be calculated in C#?

edited title
Link
Zerium
  • 17.4k
  • 33
  • 119
  • 187
Loading
edited tags
Link
Basil Bourque
  • 345.9k
  • 128
  • 949
  • 1.3k
Loading
Post Merged (destination) from stackoverflow.com/questions/32459614/…
Adding tag
Link
user2771704
  • 6.3k
  • 6
  • 41
  • 43
Loading
remove non-English word
Source Link
HaveNoDisplayName
  • 8.5k
  • 106
  • 41
  • 50
Loading
added c# tag
Link
Loading
Removed language tag, we have answers for C#, JavaScript, PHP, etc... this is community wiki, let's make this question a destination for all those looking for date time differences in general... why are people trying to close this community wiki?
Link
Theraot
  • 41.1k
  • 7
  • 70
  • 105
Loading
added 3 characters in body; edited tags
Source Link
Danny Beckett
  • 21.1k
  • 27
  • 114
  • 144
Loading
grammar
Source Link
Mike Marks
  • 10.1k
  • 18
  • 75
  • 132
Loading
datediff tag
Link
Kara
  • 6.2k
  • 16
  • 54
  • 58
Loading
tagged to context
Link
Lenin
  • 610
  • 17
  • 38
Loading
Rollback to Revision 1
Source Link
Cole Tobin
  • 9.4k
  • 15
  • 52
  • 77
Loading
added 146 characters in body
Source Link
Colonel Panic
  • 138.4k
  • 98
  • 420
  • 483
Loading
deleted 5 characters in body; edited title
Source Link
Mathew Thompson
  • 56.5k
  • 15
  • 130
  • 151
Loading
Rollback to Revision 7
Source Link
Code Lღver
  • 15.6k
  • 16
  • 60
  • 75
Loading
Rollback to Revision 6
Link
Code Lღver
  • 15.6k
  • 16
  • 60
  • 75
Loading
Rollback to Revision 5
Source Link
Code Lღver
  • 15.6k
  • 16
  • 60
  • 75
Loading
added 2 characters in body
Source Link
Daniel A. White
  • 191.7k
  • 49
  • 388
  • 472
Loading
Question Protected by Community Bot
edited tags
Link
Ether
  • 54.1k
  • 13
  • 90
  • 162
Loading
edited tags; edited tags
Link
David Glass
  • 2.4k
  • 1
  • 25
  • 36
Loading
Post Made Community Wiki
1
2
lang-cs

AltStyle によって変換されたページ (->オリジナル) /