Using Day.js to calculate the difference between two dates

In the Saber Commerce timesheet entries we need to calculate (quickly and accurately) the difference between two dates. Doing this in raw JS would be a pain to say the least, arguably feasible but not fun to code at all. So we searched for libraries that could help, and most examples of javascript date manipulation…

How we built the time selectors for the Saber Commerce Timesheet Component

When we searched around for jQuery or other JS time selection libraries we were a bit disappointed at what we found. We wanted something modern like the time selection in ClickUp, but weren’t sure we could pull off the very dynamic “enter whatever and have it converted to a time” approach that ClickUp has. We…