[๋ ธ์ ] ๋ฐ๋๋ผ์ธ, ๋ง๊ฐ์ผ ์์(formula) ํ์
Notion formula ์ค์์ ๋ฐ๋๋ผ์ธ๊น์ง ๋จ์ ๊ธฐ๊ฐ์ ๋ง๋ค์ด์ฃผ๋ formula๋ฅผ ์์ฑํ๋๋ฐ ์ ํํ ๊ทธ ๋ ์ง์ ๋ง์ง ์๊ฒ ๋์ค๋๋ผ๊ตฌ์. ๊ทธ๋์ ๊ทธ๋๋ง due date์ due tomorrow๋ฅผ ํ๋ฒ์ ๋ฌถ์ด์ฃผ๊ณ ๋จ์ ๋ ๋ค์ ๋งํด์ฃผ๋ formula๋ฅผ ์์ฑํด ๋ดค์ต๋๋ค. ์์งํ ๋์์ด ๋ ์ง๋ ๋ชจ๋ฅด๊ฒ ์ง๋ง ์ ๊ฐ ์๊ฐ์ ์์๋ ๋งํผ ์ฌ๋ฌ๋ถ๋ค๋ ์ป์ด๊ฐ๋ ๊ฒ ์์ผ๋ฉด ์ข๊ฒ ์ต๋๋ค.
if( dateBetween(Due, now(), "days") == 0, "due today & tmr ๐จ", if( dateBetween(Due, now(), "days") == 0, "due tomorrow ๐", if( Due > now(), "due in " + format(dateBetween(Due, now(), "days") + 1) + " days ๐", "overdue ๐ฅ" ) ) )
ํน์๋ ์ ํํ๊ฒ ๋ ์ง๋ฅผ ๋งํด์ฃผ๋ formula๋ฅผ ๊ฐ์ง์ ๋ถ์ด ์๋ค๋ฉด ํจ๊ป ๋๋๋ฉด ๋ง์ ์ฌ๋๋ค์๊ฒ ๋์์ด ๋ ๊ฒ ๊ฐ์ต๋๋ค.
๋๊ธ