๐ฅ
Due today/overdue
๐ด
Due in โค 2 days
๐ก
Due in < 7 days
๐ข
Due in โฅ 7 days
Status
if(formatDate(now(), "L") == formatDate(prop("Due date"), "L") or prop("Due date") < now(), "๐ฅ", if(dateBetween(prop("Due date"), now(), "days") <= 2, "๐ด", if(dateBetween(prop("Due date"), now(), "days") < 7, "๐ก", if(dateBetween(prop("Due date"), now(), "days") >= 7, "๐ข", "N/A"))))
Explanation
if(formatDate(now(), "L") == formatDate(prop("Due date"), "L") or prop("Due date") < now(), "๐ฅ",
If the current date in the MM/DD/YYYY format matches that of the Due date, or the Due date is less than the current date, display ๐ฅ
if(dateBetween(prop("Due date"), now(), "days") <= 2, "๐ด",
Otherwise if the number of days between the Due date and the current date is less than or equal to 2, display ๐ด
if(dateBetween(prop("Due date"), now(), "days") < 7, "๐ก",
Otherwise if the number of days between the Due date and the current date is less than 7, display ๐ก
if(dateBetween(prop("Due date"), now(), "days") >= 7, "๐ข",
Otherwise if the number of days between the Due date and the current date is greater than or equal to 7, display ๐ข
"N/A"))))
Otherwise display N/A.
ย
ย