I have a data file that contains current meter data for multiple days.
I am trying to use the Processing Modeller to extract a single days worth of data for further manipulation, using the Extract by Expression
algorithm.
My input data layer has the date in it, with the format dd/mm/yy
(i.e 01/12/19)
I've tested my selection expression using Select by expression in QGIS as per below, which correctly selects 1 days worth of data.
Building my model, I select the input later using a vector feature parameter definition. I then used String parameter definition to input the required date '25/12/19'
and the date field "%Date"
I entered the below expression into the Processing Modeller to match the Select by Expression
that I tested ealier.
When I run the model, nothing is extracted to the result layer.
I'm sure it's probably a syntax problem, but can't figure it out.
'25/12/19'
is not a date. It is a string representing a date. A date would be2019-12-25
.