Skip to content

How do I display dates in queries as relative? #2623

Answered by claremacrae
voximity asked this question in Q&A
Discussion options

You must be logged in to vote

You've got two options:

  • Using one of the snippets in the Show and tell post Due date styles ✨
    • But note that it is limited to date ranges within 7 days before or after today.
  • By using a custom group and putting relative dates in the heading.
    • There are many examples of custom group instructions in the Due Date section of the grouping docs. They also work for scheduled, start, happens or any of the other date fields.
    • This will almost certainly be your best bet - substitute due with whatever field you want to group by:
      • group by function task.due.fromNow.groupText

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@voximity
Comment options

@claremacrae
Comment options

Answer selected by claremacrae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
scope: css styling Changes to styling of elements displayed by Tasks, including search results and individual tasks scope: filters Additions and modifications to the search filters scope: grouping Changes to the grouping capabilities
2 participants