Can't make a Find work in script
I have the following script, where I get a Start and end date then try to do a find on a layout.
The Find fails with a "find criteria is not valid". The shown criteria is the variable name $vstartdate, so obviously the date is not being properly translated into the find.
Where have I gone wrong here?