Dates and numbers
Show times in the user's own time zone, keep calendar dates as dates, and read numbers the way people type them. Most off-by-one-day bugs start here.
- Required 1
- Recommended 2
- Optional 1
Required
Keep calendar dates as dates
APP-13Keep a value with no time of day, such as a due date, as a plain
YYYY-MM-DDdate everywhere. Never turn it into a moment in time.
Recommended
Show times in the user's time zone
APP-12Show every moment in time in the user's chosen time zone, and name the zone wherever people in different zones see the same screen.
Read numbers the way people type them
APP-15Read numbers and amounts in the user's locale, so
1 234,50in Sweden and1,234.50in the US both mean the same amount. Never parse money as a floating-point number.
Optional
Show relative times with the exact time beside them
APP-14Put each relative time, such as "5 minutes ago", in a
<time>element with the exact time indatetime. Show the exact local time in a tooltip on hover and on keyboard focus.
Read this with
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/app-ui/dates-and-numbers">Agent Wranglers web app interface playbook</a>. In code you write, add a comment next to it with the same link.