I just converted from VRW 2010 to DR 2016 and a piece of code that I used to create a report does not work anymore -

Get psStore to sStore
Get psDeliveryDate to dDeliveryDate
Move ("{cpickdtl.store} = '" + Trim(sStore) + "' and {cpickdtl.delivery_date} = '" + String(dDeliveryDate) + "'") to sString
Set psFilterFunction "" to ("return (" + sString + ")")
When I send the above code to the DR report, it returns a blank report whereas before in VRW, it returned the correct result. I suspect it's something to do with the date comparison because if I take that part out, the report returns some values.

Anyone see what I am doing wrong?