-
-
Notifications
You must be signed in to change notification settings - Fork 111
Human friendly dates
ransome edited this page Mar 23, 2024
·
1 revision
Version 2.0.12
introduces a feature for presenting dates in a human-friendly manner, now available within sleek's settings. This enhancement transforms dates from the standard YYYY-MM-DD
format into easily understandable relative expressions, guided by a straightforward set of rules:
- Dates preceding the current day are labeled
overdue
for due dates orelapsed
for any other dates. - Dates within the past week are denoted as
last week
. - Today's date is presented as
today
. - Tomorrow's date is labeled as
tomorrow
. - Dates within the upcoming week are displayed as
next week
. - Dates within the current month are represented as
this month
. - Dates within the next month are indicated as
next month
. - For dates far into the future, the known format, such as
2024-03-24
, is retained.
In the attribute drawer, dates are consolidated, providing a comprehensive view. For instance, if a task is due today, it will manifest as three distinct buttons: today
, this week
, and this month
.