πŸ–ŒοΈ

Upcoming Deadline Design

Master Tag
Productivity
Created
Jan 9, 2021 05:44 PM
Usage
Concat
Slice
Day
Now()
formateDate
Greater Than
Less Than
Web Tags
Design
Formula
Planning
Cover

Donate

βœ‚οΈ
What is this formula doing? If deadline is within the next week, show the day of the week it is due. If not ... show blank space.
πŸ”₯
I suggest filtering a separate view for upcoming deadlines β†’ Day For Upcoming Tasks is not empty
notion image

Formulas
Progress Bar β†’ Weekday now
"β—€" + concat(slice("β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’", 0, 3 * day(now()) + 1), formatDate(now(), "ddd"), slice("β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’", 0, 21 - 3 * day(now()) - 2)) + "β–ΆοΈŽ"
Progress Bar β†’ Weekday of deadline
"β—€" + concat(slice("β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’", 0, 3 * day(prop("Deadline")) +1), formatDate(prop("Deadline"), "ddd"), slice("β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’", 0, 21 - 3 * day(prop("Deadline")) - 2)) + "β–ΆοΈŽ"
Progress Bar β†’ Weekday of deadline only if due within this week (Start Sunday)
notion image
if(dateBetween(prop("Deadline"), now(), "days") + 1 < 7 and dateBetween(prop("Deadline"), now(), "days") + 1 > -1, "β—€" + concat(slice("β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’", 0, 3 * day(prop("Deadline")) + 1), formatDate(prop("Deadline"), "ddd"), slice("β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’", 0, 21 - 3 * day(prop("Deadline")) - 2)) + "β–ΆοΈŽ", "")
Progress Bar β†’ Weekday of deadline only if due within this week (Start Monday)
notion image
if(dateBetween(prop("Deadline"), now(), "days") + 1 < 7 and dateBetween(prop("Deadline"), now(), "days") + 1 > 0 and day(prop("Deadline")) == 0, "β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’Sunβ–ΆοΈŽ", if(dateBetween(prop("Deadline"), now(), "days") + 1 < 7 and dateBetween(prop("Deadline"), now(), "days") + 1 > 0, concat(slice("β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’", 0, 3 * day(prop("Deadline")) - 2), formatDate(prop("Deadline"), "ddd")) + "β–ΆοΈŽ", ""))

notion image
Formula Design β†’ Upcoming Deadlines (Start Sunday)
Name
Day For Upcoming Tasks
Deadline
Jan 3, 2021
Jan 4, 2021
Jan 5, 2021
Jan 6, 2021
Jan 7, 2021
Jan 8, 2021
Jan 9, 2021
Formula Design β†’ Upcoming Deadlines (Start Monday)
Name
Day For Upcoming Tasks
Deadline
Jan 18, 2021
Jan 19, 2021
Jan 20, 2021
Jan 21, 2021
Jan 22, 2021
Jan 16, 2021
Jan 17, 2021