Skip to content

Instantly share code, notes, and snippets.

@23maverick23
Last active June 18, 2020 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 23maverick23/95d9ecbd9aea044843ee20a26c44fa18 to your computer and use it in GitHub Desktop.
Save 23maverick23/95d9ecbd9aea044843ee20a26c44fa18 to your computer and use it in GitHub Desktop.
Notion: Days Until Due
if(empty(prop("Due Date")), "N/A", if(dateBetween(prop("Due Date"), now(), "days") + 1 < 0, "Past Due", if(dateBetween(prop("Due Date"), now(), "days") + 1 == 0, "Today", if(dateBetween(prop("Due Date"), now(), "days") + 1 == 1, "Tomorrow", format(dateBetween(prop("Due Date"), now(), "days") + 1) + " days"))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment