V
V
Vladislav Kilin2015-08-05 11:36:08
ASP.NET
Vladislav Kilin, 2015-08-05 11:36:08

Where can I find a ready-made solution for the "smart" DateTime format in C#?

Before me there is a task to deduce dates in a "smart" format. From the series: "just now", "2 minutes ago", "yesterday at 22:00" and so on. Of course, you can write the code yourself, but you don't want to reinvent the wheel. Google didn't help. Are there ready-made solutions for such formatting?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
wkololo_4ever, 2015-08-05
@Quilin

https://github.com/MehdiK/Humanizer

D
Dmitry Kovalsky, 2015-08-05
@dmitryKovalskiy

Write extension method ToMyCoolString() will be faster than search

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question