Tip: Extension Method for Friendly DateTime Labels

Have you ever wanted to show when a blog post or tweet was last updated in a similar fashion to other social media posts? A few year’s ago I had borrowed a function that mostly handled this, updated the logic, and converted it to an extension method. Feel free to modify it over at GitHub and provide feedback:

If you want to view or submit comments you must accept the cookie consent.