Sadly dv.date('today') != dv.date('today') by some reasoning, and you’ll need to do: dv.date('today').ts = dv.date('today').ts. In other words when comparing for equality you need to use the .ts version of a date.
In your case that would amount to: p.date.ts == dv.date('today').ts and this statement might break due to a potentially mussing date field so I would use thif next version to counter that: p.date?.ts == dv.date('today').ts