Renvoie VRAI si la multi-sélection “Day” contient le jour de la semaine actuel (aujourd'hui), quelque soit le paramétrage de la langue dans Notion Returns TRUE if the "Day" multi-selection contains the current day of the week (today), regardless of the language setting in Notion
prop("Day")
.map(
let(
c, current.lower(),
["lundi" , "mardi" , "mercredi" , "jeudi" , "vendredi" ,"samedi" , "dimanche", "monday" , "tuesday" , "wednesday" , "thursday" , "friday" , "saturday" , "sunday"].findIndex(current == c).mod(7).add(1)
))
.some(current == now().day())
lets(
ceJour , now().day().subtract(1),
jour , ["Lundi" , "Mardi" , "Mercredi" , "Jeudi" , "Vendredi" , "Samedi" , "Dimanche"].at(ceJour),
jourGB , ["Monday" , "Tuesday" , "Wednesday" , "Thursday" , "Friday" , "Saturday" , "Sunday"].at(ceJour),
prop("Day").find(current == jour or current == jourGB).empty().not())
Renvoie VRAI si le multi-sélection “Day” contient le jour de la semaine actuel (aujourd’hui), seulement si la multi-sélection contient des jours de la semaine correspondant au langage paramétré dans Notion Returns TRUE if the "Day" multi-selection contains the current day of the week (today), only if the multi-selection contains days of the week corresponding to the language set in Notion
prop("Day").lower().contains(now().formatDate("dddd").lower())
Renvoie VRAI si le multi-sélection “Day” contient le jour de la semaine actuel (aujourd’hui), seulement si la multi-sélection contient des jours de la semaine écrits en français et que Notion est paramétré en langue française
Returns TRUE if the "Day" multi-selection contains the current day of the week (today), only if the multi-selection contains days of the week written in French and Notion is set to French
let(
jour, ["Lundi" , "Mardi" , "Mercredi" , "Jeudi" , "Vendredi" , "Samedi" , "Dimanche"].at(now().day()-1),
prop("Day").find(current == jour).not().empty()
)
Remarques :
formatDate("dddd") commence par une majuscule lorsque Notion est paramétré en anglais et une minuscule en français.
Days of the week from formatDate("dddd") are capitalized when Notion is set to English, and lower-case when set to French.["lundi" , "mardi" , "mercredi" , "jeudi" , "vendredi" ,"samedi" , "dimanche", "monday" , "tuesday" , "wednesday" , "thursday" , "friday" , "saturday" , "sunday"]