Useful Filtering Examples
Weekday or Weekend?
Show an element depending whether today is a weekday or weekend, based on the user's local clock.
wfu-filter-eval
wfu-filter-match
Today is a Weekday
new Date().getDay() % 6 !== 0
[weekday='${(new Date().getDay() % 6 !== 0).toString()}'
]
Today is a Weekend
new Date().getDay() % 6 === 0
[weekday!='${(new Date().getDay() % 6 !== 0).toString()}'
]
Both are untested.
Last updated