Linked Questions
106 questions linked to/from Calculate relative time in C#
19
votes
2
answers
8k
views
asp.net mvc time ago in words helper [duplicate]
Possible Duplicate:
How do I calculate relative time?
Is there anything similar to rails' time_ago_in_words helper for asp.net MVC?
16
votes
3
answers
11k
views
How to create a friendly date format (for example "submitted 2 days ago") [duplicate]
Possible Duplicate:
How do I calculate relative time?
I want to format dates on my social web app much like Digg.com and other sites do. There, you see very friendly dates, such as:
just now
3 ...
1
vote
1
answer
4k
views
Convert DateTime.Now to Time ago C# [duplicate]
I'm working on simple asp.net mvc website, that shows user's post.
I'm saving the post details in the DB including uploaded date.
DateTime dateTimeNow = DateTime.Now;
newPost.Feed_Upload_Date = ...
1
vote
1
answer
3k
views
Calculating time in ASP.NET [duplicate]
Possible Duplicate:
How do I calculate relative time?
While posting something on SO it shows posted 5 mins ago or 1hr ago. How do I calculate the time and display it the same way?
5
votes
6
answers
716
views
How I can convert Date to String formate.? [duplicate]
Possible Duplicate:
How do I calculate relative time?
I want to convert Date Value to string formate just like YouTube Videos Uploaded Time or Date for Eg. 2 Years Ago or 1 month ago or 8 houre ...
2
votes
2
answers
3k
views
Calculating Timespan using asp.net [duplicate]
Possible Duplicate:
How do I calculate relative time?
I would like to use asp.net c# to calculate the timespan for when a file was uploaded. Example, if i uploaded a file two weeks ago my text ...
2
votes
3
answers
2k
views
Format DateTime like StackoverFlow [duplicate]
Possible Duplicates:
Fuzzy date algorithm
How do I calculate relative time?
Hi,
How-to format datetime like SO ?
1 minute ago
1 hour ago
asked Aug 15 at 15:00
3
votes
2
answers
1k
views
Display Friendly Date, Numbers [duplicate]
Possible Duplicate:
How do I calculate relative time?
I am searching for a custom control for asp.net, which helps display user friendly dates, like instead of article date:
(2-april-2010)
it ...
-1
votes
1
answer
2k
views
How might I format relative dates the way Stack Overflow does "member since" and "last seen"? [duplicate]
Possible Duplicate:
How do I calculate relative time?
I want to know how to display these data as seen on stackoverflow.com profile page. I have the timestamp of users registered date and last ...
0
votes
3
answers
1k
views
Calculate period expires date in second or minutes or hours or days [duplicate]
I want to create a method it returns string and (calculate the period expires days) differences between expires date and current date.
if the differences is less than 1 minutes i will return in second ...
0
votes
1
answer
742
views
Replicate moment.js fromNow() and toNow() in C# [duplicate]
I tried to ask this question but some users thought it was a duplicate and closed the question. I explained it in a comment but in any case, I wrote an extension method in C# and it will appear in an ...
-2
votes
4
answers
179
views
String terminator for converting Time Strings [duplicate]
I have a String Array like
First[i]
In this array, the values are Like
"00hr:00min:17sec"
"00hr:03min:18sec"
"00hr:05min:25sec"
"01hr:39min:44sec"
Now I take another string array like
Secound[j]
"...
-1
votes
2
answers
110
views
how to display Date and Time in a well mannered format [duplicate]
if I want to retrieve the date and time from db and show it in format
"2 mins ago, just now, or 6 months ago" kinda etc.,
how can i do it.. :)
Can any one suggest me how to do this please,
3
votes
2
answers
151
views
Elegant Algorithm for conversational date strings? [duplicate]
Possible Duplicate:
How do I calculate relative time?
Given a DateTime object, what's the most elegant way you've found of converting it to a human friendly string. Something like this:
(Future)
...
0
votes
2
answers
179
views
Subtracting time to post how many minutes ago [duplicate]
So my current $item['date'] function gets the time and date of the post in this format Y-m-d H:i:s.
I want to display how many minutes was the post posted or if it is more than 24 hours, how many ...