.NET Library to handle DateTime output nicer [duplicate]
Possible Duplicate:
How do I calculate relative time?
I did stumble upon a nice library some time ago that gives you a nicer way when we're dealing with Dates like:
@DateTime.AddDays(-1)
will show yesterday
@DateTime.Now
will show Just now
WHat is the technical term of this and, did you guys know the nuget package of this library?
There's a jQuery plugin out there called timeago, which can also do what you're looking for: http://timeago.yarp.com/
精彩评论