Last active
November 17, 2021 22:14
-
-
Save yannik-dittmar/3890adf03b191c194ce21af059668376 to your computer and use it in GitHub Desktop.
Notion Deadline Formula
This file contains 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")==true,"β Done",if(not(empty(dateBetween(prop("Dates"),now(),"minutes"))),if(dateBetween(prop("Dates"),now(),"minutes")<=0,"β OVER",if(dateBetween(prop("Dates"),now(),"days")<=3,if(dateBetween(prop("Dates"),now(),"days")==0,"π¨ ","β "),"π ")+if(dateBetween(prop("Dates"),now(),"weeks")>0,if(dateBetween(prop("Dates"),now(),"weeks")>1,format(dateBetween(prop("Dates"),now(),"weeks"))+" weeks","1 week"),if(dateBetween(prop("Dates"),now(),"days")>0,if(dateBetween(prop("Dates"),now(),"days")>1,format(dateBetween(prop("Dates"),now(),"days"))+" days","1 day"),if(dateBetween(prop("Dates"),now(),"hours")>0,if(dateBetween(prop("Dates"),now(),"hours")>1,format(dateBetween(prop("Dates"),now(),"hours"))+" hours","1 hour"),format(dateBetween(prop("Dates"),now(),"minutes"))+" min")))),"β No date")) |
This file contains 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") == true, | |
"β Done", | |
if(not(empty(dateBetween(prop("Dates"), now(), "minutes"))), | |
if(dateBetween(prop("Dates"), now(), "minutes") <= 0, | |
"β OVER", | |
if(dateBetween(prop("Dates"), now(), "days") <= 3, | |
if(dateBetween(prop("Dates"), now(), "days") == 0, | |
"π¨ ", | |
"β " | |
), | |
"π " | |
) | |
+ | |
if(dateBetween(prop("Dates"), now(), "weeks") > 0, | |
if(dateBetween(prop("Dates"), now(), "weeks") > 1, | |
format(dateBetween(prop("Dates"), now(), "weeks")) + " weeks", | |
"1 week" | |
), | |
if(dateBetween(prop("Dates"), now(), "days") > 0, | |
if(dateBetween(prop("Dates"), now(), "days") > 1, | |
format(dateBetween(prop("Dates"), now(), "days")) + " days", | |
"1 day" | |
), | |
if(dateBetween(prop("Dates"), now(), "hours") > 0, | |
if(dateBetween(prop("Dates"), now(), "hours") > 1, | |
format(dateBetween(prop("Dates"), now(), "hours")) + " hours", | |
"1 hour" | |
), | |
format(dateBetween(prop("Dates"), now(), "minutes")) + " min" | |
) | |
) | |
) | |
), | |
"β No date" | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment