Compare dates

Compare current date with the date from the datefield:

item.datefield <= today

Check the difference between the date specified in the datefield and current date:

item.datefield.diff((new Date()).toISOString().slice(0,10), 'days') == 0

 

Contents