开发者

.NET Library to handle DateTime output nicer [duplicate]

This question already has answers here: Closed 11 years ago. 开发者_StackOverflow

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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜