Improvement #6 - Nicely Formatted Dates

This is the sixth post in the series 10 improvements in 10 days. Last week, we made 5 nice little improvements to you. Today, we want to improve how dates as shown on elmah.io.

All messages shows the date and time when the message where logged to elmah.io. We use the excelent JavaScript framework Moment.js to show a nicely formatted date and time:

Date and time

In the example above, the message where logged 8 days ago. Sometimes, 8 days ago simply doesn't provide enough information and you want to see the exact date and time of that particular message. We previously had a pretty awful ToString representation when hovering the date. With todays improvment, we generate a nicely formatted (browser locale aware) tooltip:

Nicely formatted date

This change is available in both the list, the error details and in the error page available through the permalink.

elmah.io: Error logging and Uptime Monitoring for your web apps

This blog post is brought to you by elmah.io. elmah.io is error logging, uptime monitoring, deployment tracking, and service heartbeats for your .NET and JavaScript applications. Stop relying on your users to notify you when something is wrong or dig through hundreds of megabytes of log files spread across servers. With elmah.io, we store all of your log messages, notify you through popular channels like email, Slack, and Microsoft Teams, and help you fix errors fast.

See how we can help you monitor your website for crashes Monitor your website