Due Date Status

Due Date Status

๐Ÿ”ฅ 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.
ย 
ย 
By Ben  โ€ข  Latest  โ€ข  Was this helpful? Please consider buying me a coffee. Cheers!By Ben  โ€ข  Latest  โ€ข  Was this helpful? Please consider buying me a coffee. Cheers!
By Ben โ€ข Latest โ€ข Was this helpful? Please consider buying me a coffee. Cheers!