Improvement #6 - Nicely Formatted Dates

Thomas Ardal, February 29, 2016

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.


This post was brought to you by the elmah.io team. elmah.io is the best error management system for .NET web applications. We monitor your website, alert you when errors start happening and help you fix errors fast.

Monitor your website



Comments