I need help with date search! How do I do X?

It depends on what you want to find, the context of the search (which part of the graph it is made in), and the time scale/granularity you are looking for.

Below are possible queries you can use to find date-related things in Tana. A quick legend:
> : Typing this key starts a field anywhere in Tana, so we prefix fields with this sign when writing out queries in text

LT/GT : Less than/Greater than field operators

text : Text in this style is meant to be written out

I want to find all overdue items from a deadline date field...

  • based on what the time is right now (most efficient graph-wise):
    • >LT : >your deadline field : FOR RELATIVE DATE today
    • Example: You are making a task dashboard in the tree that is always showing you information based on the current time
  • based on the date in a date field of parent node:
    • >LT : >your deadline field : PARENT.date field
    • Example: You can see overdue tasks based on the date of the meeting note
  • based on the date of an ancestor calendar node:
    • >LT : >your deadline field : PARENT/GRANDPARENT
    • Example: You have a search node as part of your #day supertag template

I want to find deadline dates that fall within a range (let's say, a week)...

  • based on what the time is right now, and this/last/next week/month/year:
    • >your deadline field : FOR RELATIVE DATE this/last/next week
  • relative to a date field of the parent node:
    • >LT : >your deadline field : PARENT.date field
    • >GT : >your deadline field : PARENT.date field-7
  • relative to the date of a calendar node:
    • >LT : >your deadline field : PARENT
    • >GT : >your deadline field : PARENT-7

I want to find nodes based on their location in the journal nodes...

  • To pick up the date based on the calendar node they are nested under, use system field Date from calendar node
  • For field value, use any variation from the above examples depending on need and context

I want to find nodes relative to the search node's location in a journal node...

  • Relative to parent
    • PARENTS DESCENDANTS
    • Example: A search node on a day page limits search to only nodes that live on the parent Day page
  • Relative to grandparent
    • GRANDPARENTS DESCENDANTS
    • Example: A search node on the day page limits search to only nodes that live on the grandparent Week page
  • For both operators, add WITH REFS to include references in the search

I want to find nodes based on when they were created/edited/done relative to now (replace X with a number)

  • CREATED LAST X DAYS
  • EDITED LAST X DAYS
  • DONE LAST X DAYS

I want to find nodes based on when they were created/edited/done relative to a date field of the parent node

  • Use system fields Created time, Last edited time, and Done time
  • As field value, write out PARENT.date field

To read about these search operators and more, check out Search Operators