Created
November 13, 2024 21:46
-
-
Save dealingwith/4fa223a0dd00d0fe575c27dfcbd28e5e to your computer and use it in GitHub Desktop.
due date proximity Notion formula
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(prop("Status") != "Done", | |
if(formatDate(dateEnd(dateStart(prop("Due"))), "MMM DD, YYYY") == formatDate(now(), "MMM DD, YYYY"), "Due Today ⌛", | |
if(dateBetween(dateEnd(prop("Due")), now(), "days") > 0, format(abs(dateBetween(dateEnd(prop("Due")), now(), "days")) + 1) + " Days ⏳", | |
if(dateBetween(dateEnd(prop("Due")), now(), "days") > -1, "Due Tomorrow ⏳", | |
if(dateBetween(dateEnd(prop("Due")), now(), "days") < 0, format(abs(dateBetween(dateEnd(dateStart(prop("Due"))), now(), "days"))) + " Days Past Due 🔥", "")) | |
) | |
), | |
"") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment