Is there any functionality in .Net or any Nuget package to put time in a descriptive format of how far in the past it was.
E.g. Given a date say how it was in the past.
- Yesterday
- 5 days ago
- Last Week
- Last Month
- 4 Months ago
- Last Year
I’ve seen similar stuff in Perl and I don’t want to reinvent the wheel
You can install this NuGet Package and you’ll have a
DateTime.ToNaturalRelativeTimeExtension Method that seems to do what you wish.